Skip to content

Commit

Permalink
Update pages/common/docker-context.md
Browse files Browse the repository at this point in the history
Co-authored-by: Lena <[email protected]>
  • Loading branch information
7aske and acuteenvy authored Dec 7, 2024
1 parent 49ba877 commit 9c032ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pages/common/docker-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
> Lets you switch between contexts to manage multiple Docker environments.
> More information: <https://docs.docker.com/reference/cli/docker/context/>.
- Create context using a specific Docker endpoint:
- Create a context using a specific Docker endpoint:

`docker context create my-context --docker "host=tcp://remote-host:2375"`
`docker context create {{my_context}} --docker "host={{tcp://remote-host:2375}}"`

- Create based on DOCKER_HOST environment variable:
- Create a context based on the `DOCKER_HOST` environment variable:

`docker context create my-context`
`docker context create {{my_context}}`

- Switch to a context:

`docker context use my-context`
`docker context use {{my_context}}`

- List all contexts:

Expand Down

0 comments on commit 9c032ea

Please sign in to comment.