DockerCLI/cli/command/system/testdata
Sebastiaan van Stijn 181e60499f
docker version: add "context" to output
This adds the currently selected "docker context" to the output
of "docker version", which allows users to see which context
is selected to produce the version output, and can be used (for
example), to set the prompt to the currently selected context:

(in `~/.bashrc`):

```bash
function docker_context_prompt() {
        PS1="context: $(docker version --format='{{.Client.Context}}')> "
}

PROMPT_COMMAND=docker_context_prompt
```

After reloading the `~/.bashrc`, the prompt now shows the currently selected
`docker context`:

```bash
$ source ~/.bashrc
context: default> docker context create --docker host=unix:///var/run/docker.sock my-context
my-context
Successfully created context "my-context"
context: default> docker context use my-context
my-context
Current context is now "my-context"
context: my-context> docker context use default
default
Current context is now "default"
context: default>
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-07 14:07:15 +02:00
..
docker-client-version.golden docker version: add "context" to output 2020-05-07 14:07:15 +02:00
docker-info-badsec.golden Rework `docker info` output to be more like `docker version` 2019-01-25 14:46:26 +00:00
docker-info-badsec.json.golden update docker, replace github.com/docker/pkg/term, github.com/docker/pkg/mount 2020-04-22 17:16:13 +02:00
docker-info-daemon-warnings.json.golden update docker, replace github.com/docker/pkg/term, github.com/docker/pkg/mount 2020-04-22 17:16:13 +02:00
docker-info-errors.golden Rework `docker info` output to be more like `docker version` 2019-01-25 14:46:26 +00:00
docker-info-errors.json.golden Separate client and daemon info in `docker system info` 2019-01-25 14:38:04 +00:00
docker-info-legacy-warnings.json.golden update docker, replace github.com/docker/pkg/term, github.com/docker/pkg/mount 2020-04-22 17:16:13 +02:00
docker-info-no-swarm.golden Rework `docker info` output to be more like `docker version` 2019-01-25 14:46:26 +00:00
docker-info-no-swarm.json.golden update docker, replace github.com/docker/pkg/term, github.com/docker/pkg/mount 2020-04-22 17:16:13 +02:00
docker-info-plugins-warnings.golden Integrate CLI plugins into `docker info` 2019-01-30 13:45:26 +00:00
docker-info-plugins.golden Reformat the output of CLI plugins in `docker system info` 2019-02-25 13:13:51 +00:00
docker-info-plugins.json.golden update docker, replace github.com/docker/pkg/term, github.com/docker/pkg/mount 2020-04-22 17:16:13 +02:00
docker-info-warnings.golden Include whether the managers in the swarm are autolocked as part of `docker info`. 2017-08-25 16:33:46 -07:00
docker-info-with-swarm.golden Rework `docker info` output to be more like `docker version` 2019-01-25 14:46:26 +00:00
docker-info-with-swarm.json.golden update docker, replace github.com/docker/pkg/term, github.com/docker/pkg/mount 2020-04-22 17:16:13 +02:00