Docker Engine: contexts for managing multiple daemons
Answer: Docker contexts let one client manage more than one Docker daemon.
What a context holds
Each context contains all information required to manage resources on the daemon.
The context command can configure contexts and switch among them.
A client might have a default context running locally and a remote, shared context.
Listing and switching
Use the context use command to switch between configured contexts.
A context combines a name and description, endpoint configuration, and TLS info.
The context ls command lists available contexts, and an asterisk marks the active one.
See also
Claims
- id: C1 claim: Contexts let you manage Docker daemons from a single client. source: S1 evidence: "use contexts to manage Docker daemons from a single client"
- id: C2 claim: Each context contains the information needed to manage daemon resources. source: S1 evidence: "Each context contains all information required to manage resources on the daemon."
- id: C3 claim: Contexts let you manage Docker daemons from a single client. source: S2 evidence: "use contexts to manage Docker daemons from a single client"
- id: C4 claim: Each context contains the information needed to manage daemon resources. source: S2 evidence: "Each context contains all information required to manage resources on the daemon."
Sources
- [S1] Docker contexts. Docker, Inc.. https://docs.docker.com/engine/manage-resources/contexts/ . License: Apache License 2.0. Accessed 2026-11-24.
- [S2] Docker contexts (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/manage-resources/contexts.md . License: Apache License 2.0. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Docker contexts; Docker, Inc., Docker contexts (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Docker contexts; Docker, Inc., Docker contexts (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker Engine: contexts for managing multiple daemons." iinventedlight Library, iil:note:kxmn13dd, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-contexts/. License: CC-BY-4.0.
@misc{iil_note_kxmn13dd,
author = {{iinventedlight}},
title = {{Docker Engine: contexts for managing multiple daemons}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-contexts/},
note = {Permanent ID iil:note:kxmn13dd. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-contexts.schema.json (schema; CC-BY-4.0)
- docker-contexts.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-contexts.md.