From 936007524ab8f46a2ed0872232517a419589bcd8 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Fri, 17 Nov 2017 12:08:29 -0800 Subject: [PATCH] Update docs for new publish syntax (#5323) --- docs/deploying.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/deploying.md b/docs/deploying.md index 61e63047..ae7f187f 100644 --- a/docs/deploying.md +++ b/docs/deploying.md @@ -127,7 +127,7 @@ $ docker run -d \ registry:2 ``` -If you want to change the port the registry listens on within the container, you +If you want to change the port the registry listens on within the container, you can use the environment variable `REGISTRY_HTTP_ADDR` to change it. This command causes the registry to listen on port 5001 within the container: @@ -325,7 +325,7 @@ $ docker service create \ -e REGISTRY_HTTP_ADDR=0.0.0.0:80 \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/run/secrets/domain.crt \ -e REGISTRY_HTTP_TLS_KEY=/run/secrets/domain.key \ - -p 80:80 \ + --publish target=80,port=80 \ --replicas 1 \ registry:2 ```