mirror of https://github.com/docker/docs.git
Add tip on finding DTR replica ID
This commit is contained in:
parent
1f77709e49
commit
e5f417debf
|
|
@ -45,7 +45,7 @@ It also reconfigures DTR removing all other nodes from the cluster, leaving DTR
|
||||||
as a single-replica cluster with the replica you chose.
|
as a single-replica cluster with the replica you chose.
|
||||||
|
|
||||||
Start by finding the ID of the DTR replica that you want to repair from.
|
Start by finding the ID of the DTR replica that you want to repair from.
|
||||||
You can find the list of replicas by navigating to the UCP web UI, or by using
|
You can find the list of replicas by navigating to **Shared Resources > Stacks** or **Swarm > Volumes** (when using [swarm mode](/engine/swarm/)) on the UCP web interface, or by using
|
||||||
a UCP client bundle to run:
|
a UCP client bundle to run:
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
|
|
@ -57,6 +57,15 @@ docker ps --format "{{.Names}}" | grep dtr
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
Another way to determine the replica ID is to SSH into a DTR node and run the following:
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
```bash
|
||||||
|
REPLICA_ID=$(docker inspect -f '{{.Name}}' $(docker ps -q -f name=dtr-rethink) | cut -f 3 -d '-')
|
||||||
|
&& echo $REPLICA_ID
|
||||||
|
```
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
Then, use your UCP client bundle to run the emergency repair command:
|
Then, use your UCP client bundle to run the emergency repair command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ To remove unhealthy replicas, you'll first have to find the replica ID
|
||||||
of one of the replicas you want to keep, and the replica IDs of the unhealthy
|
of one of the replicas you want to keep, and the replica IDs of the unhealthy
|
||||||
replicas you want to remove.
|
replicas you want to remove.
|
||||||
|
|
||||||
You can find this in the **Stacks** page of the UCP web UI, or by using the UCP
|
You can find the list of replicas by navigating to **Shared Resources > Stacks** or **Swarm > Volumes** (when using [swarm mode](/engine/swarm/)) on the UCP web interface, or by using the UCP
|
||||||
client bundle to run:
|
client bundle to run:
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
|
|
@ -66,6 +66,15 @@ docker ps --format "{{.Names}}" | grep dtr
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
Another way to determine the replica ID is to SSH into a DTR node and run the following:
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
```bash
|
||||||
|
REPLICA_ID=$(docker inspect -f '{{.Name}}' $(docker ps -q -f name=dtr-rethink) | cut -f 3 -d '-')
|
||||||
|
&& echo $REPLICA_ID
|
||||||
|
```
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
Then use the UCP client bundle to remove the unhealthy replicas:
|
Then use the UCP client bundle to remove the unhealthy replicas:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue