docker context
Switch between contexts to manage multiple Docker environments. More information: https://docs.docker.com/reference/cli/docker/context/.
- Create a context using a specific Docker endpoint:
docker context create --docker "host="
- Create a context based on the
$DOCKER_HOSTenvironment variable:
docker context create
- Switch to a context:
docker context use
- List all contexts:
docker context ls
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
