Using `/var/run/docker.sock` as docker host is invalid, and causes
an error, so adding `unix://` to it.
In addition, we document the name of the context to go after the
options, so change the order in the examples.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 803b9071e7)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
19 lines
448 B
Markdown
19 lines
448 B
Markdown
---
|
|
title: "context use"
|
|
description: "The context use command description and usage"
|
|
keywords: "context, use"
|
|
---
|
|
|
|
# context use
|
|
|
|
```markdown
|
|
Usage: docker context use CONTEXT
|
|
|
|
Set the current docker context
|
|
```
|
|
|
|
## Description
|
|
Set the default context to use, when `DOCKER_HOST`, `DOCKER_CONTEXT` environment
|
|
variables and `--host`, `--context` global options are not set.
|
|
To disable usage of contexts, you can use the special `default` context.
|