部署 Docker Registry

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
docker run -d \
--name registry \
--restart always \
-p 5000:5000 \
-v "${STORAGE_DATA_DIR}/registry":/var/lib/registry \
registry:2.8.2

docker run -d \
--name registry-ui \
--restart always \
-p 5001:80 \
-e SINGLE_REGISTRY=true \
-e SHOW_CONTENT_DIGEST=true \
-e NGINX_PROXY_PASS_URL="http://${REGISTER_IP_ADDR}:5000" \
joxit/docker-registry-ui:2.5.0