forked from TrueCloudLab/distribution
commit
415f4f4837
1 changed files with 3 additions and 3 deletions
|
@ -216,7 +216,7 @@ If you have been issued an _intermediate_ certificate instead, see
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
--name registry \
|
--name registry \
|
||||||
-v `pwd`/certs:/certs \
|
-v "$(pwd)"/certs:/certs \
|
||||||
-e REGISTRY_HTTP_ADDR=0.0.0.0:443 \
|
-e REGISTRY_HTTP_ADDR=0.0.0.0:443 \
|
||||||
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \
|
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \
|
||||||
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
|
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
|
||||||
|
@ -425,11 +425,11 @@ secrets.
|
||||||
-p 5000:5000 \
|
-p 5000:5000 \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
--name registry \
|
--name registry \
|
||||||
-v `pwd`/auth:/auth \
|
-v "$(pwd)"/auth:/auth \
|
||||||
-e "REGISTRY_AUTH=htpasswd" \
|
-e "REGISTRY_AUTH=htpasswd" \
|
||||||
-e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \
|
-e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \
|
||||||
-e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
|
-e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
|
||||||
-v `pwd`/certs:/certs \
|
-v "$(pwd)"/certs:/certs \
|
||||||
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \
|
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \
|
||||||
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
|
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
|
||||||
registry:2
|
registry:2
|
||||||
|
|
Loading…
Reference in a new issue