From e61eb68b3b8c9183523f94b11aac66a6c2785d0c Mon Sep 17 00:00:00 2001 From: Anian Z Date: Tue, 17 Oct 2017 00:49:04 +0200 Subject: [PATCH] Deploying Registry: Fixed ports on HTTPS (#4965) --- docs/deploying.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/deploying.md b/docs/deploying.md index cdb4301b7..2adaafeb4 100644 --- a/docs/deploying.md +++ b/docs/deploying.md @@ -210,17 +210,17 @@ If you have been issued an _intermediate_ certificate instead, see 3. Restart the registry, directing it to use the TLS certificate. This command bind-mounts the `certs/` directory into the container at `/certs/`, and sets environment variables that tell the container where to find the `domain.crt` - and `domain.key` file. The registry runs on port 80. + and `domain.key` file. The registry runs on port 443, the default HTTPS port. ```bash $ docker run -d \ --restart=always \ --name registry \ -v `pwd`/certs:/certs \ - -e REGISTRY_HTTP_ADDR=0.0.0.0:80 \ + -e REGISTRY_HTTP_ADDR=0.0.0.0:443 \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \ -e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \ - -p 80:80 \ + -p 443:443 \ registry:2 ```