Docker context

A saved setting that tells the Docker CLI which Docker daemon to talk to.

In more detail

A context holds the endpoint (a local socket or a remote host) and credentials. docker context use switches between them, so the same docker commands can manage your laptop, a build server or a remote host. docker version -f "{{.Client.Context}}" shows the current one. Not the same as a build context.

Related terms

Taught in

References