docker-context - Man Page
Manage contexts
Examples (TL;DR)
- Create a context using a specific Docker endpoint:
docker context create my_context --docker "host=tcp://remote-host:2375"
- Create a context based on the
DOCKER_HOST
environment variable:docker context create my_context
- Switch to a context:
docker context use my_context
- List all contexts:
docker context ls
Synopsis
docker context
Description
Manage contexts
Options
-h, --help[=false] help for context
See Also
docker(1), docker-context-create(1), docker-context-export(1), docker-context-import(1), docker-context-inspect(1), docker-context-ls(1), docker-context-rm(1), docker-context-show(1), docker-context-update(1), docker-context-use(1)
Referenced By
docker-context-create(1), docker-context-export(1), docker-context-import(1), docker-context-inspect(1), docker-context-ls(1), docker-context-rm(1), docker-context-show(1), docker-context-update(1), docker-context-use(1).
Dec 2024 Docker Community Docker User Manuals