Skip to content

Commit e9a6165

Browse files
committed
Fixing docs because of (docker/docs#4465)
1 parent 10cbcbf commit e9a6165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ But syncing the join-token to the other hosts is a bit tricky, since variables o
522522

523523
###### Providing a Docker Registry
524524

525-
As state already in the previous section, we configured every Docker Engine on every Swarm node to enable http only Docker Registry access. Now let´s start our Docker Swarm Registry Service [as mentioned in the docs](https://docs.docker.com/registry/deploying/#run-the-registry-as-a-service):
525+
As state already in the previous section, we configured every Docker Engine on every Swarm node to enable http only Docker Registry access. Now let´s start our Docker Swarm Registry Service [as mentioned in the docs](https://docs.docker.com/registry/deploying/#run-the-registry-as-a-service). BUT: Currently the docs are wrong - [we´ve got it fixed already here](https://github.com/docker/docker.github.io/pull/4465):
526526

527527
```
528528
- name: Specify to run Docker Registry on Linux Manager node
@@ -531,7 +531,7 @@ As state already in the previous section, we configured every Docker Engine on e
531531
when: inventory_hostname == "masterlinux01"
532532
533533
- name: Run Docker Registry on Linux Manager node as Docker Swarm service
534-
shell: "docker service create --name swarm-registry --label registry=true -v /mnt/registry:/var/lib/registry -e REGISTRY_HTTP_ADDR=0.0.0.0:5000 -p 5000:5000 --replicas 1 registry:2"
534+
shell: "docker service create --name swarm-registry --label registry=true --mount src=/mnt/registry,dst=/var/lib/registry -e REGISTRY_HTTP_ADDR=0.0.0.0:5000 -p 5000:5000 --replicas 1 registry:2"
535535
ignore_errors: yes
536536
when: inventory_hostname == "masterlinux01"
537537

0 commit comments

Comments
 (0)