← All notes

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

Sources

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

Permanent ID: iil:note:kxmn13dd

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.},
}

Markdown

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.

All artifact files (JSON index)

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.