A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.docker.com/reference/cli/docker/context/create/ below:

docker context create | Docker Docs

docker context create Description Create a context Usage docker context create [OPTIONS] CONTEXT

Creates a new context. This lets you switch the daemon your docker CLI connects to.

Option Default Description --description Description of the context --docker set the docker endpoint --from create context from a named context Create a context with a Docker endpoint (--docker)

Use the --docker flag to create a context with a custom endpoint. The following example creates a context named my-context with a docker endpoint of /var/run/docker.sock:

Create a context based on an existing context (--from)

Use the --from=<context-name> option to create a new context from an existing context. The example below creates a new context named my-context from the existing context existing-context:

If the --from option isn't set, the context is created from the current context:

This can be used to create a context out of an existing DOCKER_HOST based script:

To source the docker endpoint configuration from an existing context use the --docker from=<context-name> option. The example below creates a new context named my-context using the docker endpoint configuration from the existing context existing-context:

Docker endpoints configurations, as well as the description can be modified with docker context update.

Refer to the docker context update reference for details.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4