mirror of https://github.com/docker/docs.git
Trying to fix command rendering of '--format "{{ .Names }}"' (#8678)
* 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. * Fixed heading inconsistency
This commit is contained in:
parent
611006f398
commit
2177ea7bf1
|
@ -23,7 +23,8 @@ docker run -i --rm --log-driver none docker/dtr:{{ page.dtr_version }} \
|
|||
backup --ucp-ca "$(cat ca.pem)" --existing-replica-id 5eb9459a7832 > backup.tar
|
||||
```
|
||||
|
||||
### Advanced (with chained commands)
|
||||
#### Advanced (with chained commands)
|
||||
{% raw %}
|
||||
```bash
|
||||
DTR_VERSION=$(docker container inspect $(docker container ps -f \
|
||||
name=dtr-registry -q) | grep -m1 -Po '(?<=DTR_VERSION=)\d.\d.\d'); \
|
||||
|
@ -41,6 +42,7 @@ docker run --log-driver none -i --rm \
|
|||
--existing-replica-id $REPLICA_ID > \
|
||||
dtr-metadata-${DTR_VERSION}-backup-$(date +%Y%m%d-%H_%M_%S).tar
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
For a detailed explanation on the advanced example, see
|
||||
[Back up your DTR metadata](ee/dtr/admin/disaster-recovery/create-a-backup/#back-up-dtr-metadata).
|
||||
|
|
Loading…
Reference in New Issue