Trying to fix command rendering of '--format "{{ .Names }}"' (#8677)

* Trying to fix command rendering of '--format "{{ .Names }}"'

--format "{{ .Names }}" is showing up in the markup but is rendering as --format "" in the published version. Added {% raw %} tags to try to fix.

* Update concatenated to chained
This commit is contained in:
Nathan Jones 2019-04-19 12:32:50 -04:00 committed by Maria Bermudez
parent 2177ea7bf1
commit e5bec55d38
1 changed files with 4 additions and 2 deletions

View File

@ -130,8 +130,9 @@ recommended for that system.
### Back up DTR metadata ### Back up DTR metadata
To create a DTR backup, load your UCP client bundle, and run the following To create a DTR backup, load your UCP client bundle, and run the following
concatenated commands: chained commands:
{% raw %}
```none ```none
DTR_VERSION=$(docker container inspect $(docker container ps -f name=dtr-registry -q) | \ DTR_VERSION=$(docker container inspect $(docker container ps -f name=dtr-registry -q) | \
grep -m1 -Po '(?<=DTR_VERSION=)\d.\d.\d'); \ grep -m1 -Po '(?<=DTR_VERSION=)\d.\d.\d'); \
@ -148,6 +149,7 @@ docker run --log-driver none -i --rm \
--ucp-ca "$(curl https://${UCP_URL}/ca)" \ --ucp-ca "$(curl https://${UCP_URL}/ca)" \
--existing-replica-id $REPLICA_ID > dtr-metadata-${DTR_VERSION}-backup-$(date +%Y%m%d-%H_%M_%S).tar --existing-replica-id $REPLICA_ID > dtr-metadata-${DTR_VERSION}-backup-$(date +%Y%m%d-%H_%M_%S).tar
``` ```
{% endraw %}
#### UCP field prompts #### UCP field prompts
@ -155,7 +157,7 @@ docker run --log-driver none -i --rm \
* `<ucp-username>` is the username of a UCP administrator. * `<ucp-username>` is the username of a UCP administrator.
* `<replica-id>` is the DTR replica ID to back up. * `<replica-id>` is the DTR replica ID to back up.
The above concatenated commands run through the following tasks: The above chained commands run through the following tasks:
1. Sets your DTR version and replica ID. To back up 1. Sets your DTR version and replica ID. To back up
a specific replica, set the replica ID manually by modifying the a specific replica, set the replica ID manually by modifying the
`--existing-replica-id` flag in the backup command. `--existing-replica-id` flag in the backup command.