mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 05:51:29 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a context using a specific Docker endpoint:
|
||||
|
||||
`docker context create {{my_context}} --docker "host={{tcp://remote-host:2375}}"`
|
||||
`docker context create {{context_name}} --docker "host={{tcp://remote-host:2375}}"`
|
||||
|
||||
- Create a context based on the `$DOCKER_HOST` environment variable:
|
||||
|
||||
`docker context create {{my_context}}`
|
||||
`docker context create {{context_name}}`
|
||||
|
||||
- Switch to a context:
|
||||
|
||||
`docker context use {{my_context}}`
|
||||
`docker context use {{context_name}}`
|
||||
|
||||
- List all contexts:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user