Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93e64bb

Browse files
author
Misty Stanley-Jones
authored
Merge pull request docker#1664 from mstanleyjones/liquid_errors
Add {% raw %} notation to a few codeblocks
2 parents 96338d0 + 7bc3323 commit 93e64bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

datacenter/ucp/2.1/guides/admin/monitor-and-troubleshoot/troubleshoot-configurations.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,21 @@ The examples below assume you are logged in with ssh into a UCP manager node.
8888
### Check the status of the database
8989

9090
```bash
91+
{% raw %}
9192
# NODE_ADDRESS will be the IP address of this Docker Swarm manager node
9293
NODE_ADDRESS=$(docker info --format '{{.Swarm.NodeAddr}}')
9394
# VERSION will be your most recent version of the docker/ucp-auth image
9495
VERSION=$(docker image ls --format '{{.Tag}}' docker/ucp-auth | head -n 1)
9596
# This command will output detailed status of all servers and database tables
9697
# in the RethinkDB cluster.
9798
docker run --rm -v ucp-auth-store-certs:/tls docker/ucp-auth:${VERSION} --db-addr=${NODE_ADDRESS}:12383 db-status
99+
{% endraw %}
98100
```
99101

100102
### Manually reconfigure database replication
101103

102104
```bash
105+
{% raw %}
103106
# NODE_ADDRESS will be the IP address of this Docker Swarm manager node
104107
NODE_ADDRESS=$(docker info --format '{{.Swarm.NodeAddr}}')
105108
# NUM_MANAGERS will be the current number of manager nodes in the cluster
@@ -109,6 +112,7 @@ VERSION=$(docker image ls --format '{{.Tag}}' docker/ucp-auth | head -n 1)
109112
# This reconfigure-db command will repair the RethinkDB cluster to have a
110113
# number of replicas equal to the number of manager nodes in the cluster.
111114
docker run --rm -v ucp-auth-store-certs:/tls docker/ucp-auth:${VERSION} --db-addr=${NODE_ADDRESS}:12383 --debug reconfigure-db --num-replicas ${NUM_MANAGERS} --emergency-repair
115+
{% endraw %}
112116
```
113117

114118
## Where to go next

0 commit comments

Comments
 (0)