mirror of https://github.com/docker/docs.git
ucp: support dump running version
Use a bash shell variable to run support dump at the same revision as the cluster is running. This is a copy-paste convenience for users in offline environments that might not be running the latest version. Signed-off-by: Trapier Marshall <trapier.marshall@docker.com>
This commit is contained in:
parent
7a993f7b65
commit
f6ab0cb105
|
@ -34,11 +34,12 @@ support dump:
|
||||||
To get the support dump from the CLI, use SSH to log into a node and run:
|
To get the support dump from the CLI, use SSH to log into a node and run:
|
||||||
|
|
||||||
```none
|
```none
|
||||||
|
UCP_VERSION=$((docker container inspect ucp-proxy --format {% raw %}'{{index .Config.Labels "com.docker.ucp.version"}}'{% endraw %} 2>/dev/null || echo -n {{ page.ucp_version }})|tr -d [[:space:]])
|
||||||
docker container run --rm \
|
docker container run --rm \
|
||||||
--name ucp \
|
--name ucp \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
--log-driver none \
|
--log-driver none \
|
||||||
{{ page.ucp_org }}/{{ page.ucp_repo }}:{{ page.ucp_version }} \
|
{{ page.ucp_org }}/{{ page.ucp_repo }}:${UCP_VERSION} \
|
||||||
support > \
|
support > \
|
||||||
docker-support-${HOSTNAME}-$(date +%Y%m%d-%H_%M_%S).tgz
|
docker-support-${HOSTNAME}-$(date +%Y%m%d-%H_%M_%S).tgz
|
||||||
```
|
```
|
||||||
|
|
|
@ -34,11 +34,12 @@ support dump:
|
||||||
To get the support dump from the CLI, use SSH to log into a node and run:
|
To get the support dump from the CLI, use SSH to log into a node and run:
|
||||||
|
|
||||||
```none
|
```none
|
||||||
|
UCP_VERSION=$((docker container inspect ucp-proxy --format {% raw %}'{{index .Config.Labels "com.docker.ucp.version"}}'{% endraw %} 2>/dev/null || echo -n {{ page.ucp_version }})|tr -d [[:space:]])
|
||||||
docker container run --rm \
|
docker container run --rm \
|
||||||
--name ucp \
|
--name ucp \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
--log-driver none \
|
--log-driver none \
|
||||||
{{ page.ucp_org }}/{{ page.ucp_repo }}:{{ page.ucp_version }} \
|
{{ page.ucp_org }}/{{ page.ucp_repo }}:${UCP_VERSION} \
|
||||||
support > \
|
support > \
|
||||||
docker-support-${HOSTNAME}-$(date +%Y%m%d-%H_%M_%S).tgz
|
docker-support-${HOSTNAME}-$(date +%Y%m%d-%H_%M_%S).tgz
|
||||||
```
|
```
|
||||||
|
|
|
@ -35,11 +35,12 @@ To get the support dump from the Web UI:
|
||||||
To get the support dump from the CLI, use SSH to log into a node and run:
|
To get the support dump from the CLI, use SSH to log into a node and run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
UCP_VERSION=$((docker container inspect ucp-proxy --format {% raw %}'{{index .Config.Labels "com.docker.ucp.version"}}'{% endraw %} 2>/dev/null || echo -n {{ page.ucp_version }})|tr -d [[:space:]])
|
||||||
docker container run --rm \
|
docker container run --rm \
|
||||||
--name ucp \
|
--name ucp \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
--log-driver none \
|
--log-driver none \
|
||||||
{{ page.ucp_org }}/{{ page.ucp_repo }}:{{ page.ucp_version }} \
|
{{ page.ucp_org }}/{{ page.ucp_repo }}:${UCP_VERSION} \
|
||||||
support > \
|
support > \
|
||||||
docker-support-${HOSTNAME}-$(date +%Y%m%d-%H_%M_%S).tgz
|
docker-support-${HOSTNAME}-$(date +%Y%m%d-%H_%M_%S).tgz
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue