- create volumes
$ docker volume create registry-ca
registry-ca
$ docker volume create registry-mirror-cache
registry-mirror-cache
- run daemon, image from https://github.com/rpardini/docker-registry-proxy
$ docker run --restart=always --name docker_registry_proxy -it -p 0.0.0.0:3128:3128 -e ENABLE_MANIFEST_CACHE=true -e ALLOW_PUSH=true -e PROXY_CONNECT_TIMEOUT=600s -e PROXY_CONNECT_READ_TIMEOUT=600s -e PROXY_CONNECT_CONNECT_TIMEOUT=600s -e PROXY_CONNECT_SEND_TIMEOUT=600s -e SEND_TIMEOUT=600s -e CLIENT_BODY_TIMEOUT=600s -e CLIENT_HEADER_TIMEOUT=600s -e PROXY_READ_TIMEOUT=600s -e PROXY_CONNECT_TIMEOUT=600s -e PROXY_SEND_TIMEOUT=600s --mount source=registry-mirror-cache,target=/docker_mirror_cache --mount source=registry-ca,target=/ca rpardini/docker-registry-proxy:0.6.2