From c2bbc7eab7b5552070434e663360dd592795d8d1 Mon Sep 17 00:00:00 2001 From: Vega Chou Date: Wed, 2 Aug 2017 03:03:05 +0800 Subject: [PATCH] fix default secrets path in container (#4011) --- docs/deploying.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/deploying.md b/docs/deploying.md index 0df88ab42..cb6955e41 100644 --- a/docs/deploying.md +++ b/docs/deploying.md @@ -311,7 +311,7 @@ you are also specifying that only a single replica should run at a time. The example bind-mounts `/mnt/registry` on the swarm node to `/var/lib/registry/` within the container. -By default, secrets are mounted into a service at `/run/`. +By default, secrets are mounted into a service at `/run/secrets/`. ```bash $ docker service create \ @@ -321,8 +321,8 @@ $ docker service create \ --label registry=true \ -v /mnt/registry:/var/lib/registry \ -e REGISTRY_HTTP_ADDR=0.0.0.0:80 \ - -e REGISTRY_HTTP_TLS_CERTIFICATE=/run/domain.crt \ - -e REGISTRY_HTTP_TLS_KEY=/run/domain.key \ + -e REGISTRY_HTTP_TLS_CERTIFICATE=/run/secrets/domain.crt \ + -e REGISTRY_HTTP_TLS_KEY=/run/secrets/domain.key \ -p 80:80 \ --replicas 1 \ registry:2