Docker Community Forums

Share and learn in the Docker community.

Docker Registry Mirror Problem


(Milad Khoshdel) #1

Hello

i’m new in docker and i try to run docker registry mirror from (https://docs.docker.com/v1.6/articles/registry_mirror/) on CentOS release 6.8 (Final) 64X with below command:

sudo docker run -p 5000:5000
-e STANDALONE=false
-e MIRROR_SOURCE=https://registry-1.docker.io
-e MIRROR_SOURCE_INDEX=https://index.docker.io
registry

My docker version:

[root@srv34102 ~]# docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d/1.7.1
OS/Arch (server): linux/amd64

i have another docker installed on Ubuntu14 (server) and when i set my docker mirror on that and try to pull image, i get 404 error on my registry mirror.

Command that i entered on my ubuntu:
docker pull hello-world

Error log on my docker registry mirror

[root@srv34102 ~]# sudo docker run -p 5000:5000 -e STANDALONE=false -e MIRROR_SOURCE=https://registry-1.docker.io -e MIRROR_SOURCE_INDEX=https://index.docker.io registry
time=“2016-08-21T12:05:28Z” level=warning msg=“No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable.” go.version=go1.6.3 instance.id=3a214896-6bdb-47f9-aee6-7fe7d25d0789 version=v2.5.0
time=“2016-08-21T12:05:28Z” level=info msg=“redis not configured” go.version=go1.6.3 instance.id=3a214896-6bdb-47f9-aee6-7fe7d25d0789 version=v2.5.0
time=“2016-08-21T12:05:28Z” level=info msg=“Starting upload purge in 25m0s” go.version=go1.6.3 instance.id=3a214896-6bdb-47f9-aee6-7fe7d25d0789 version=v2.5.0
time=“2016-08-21T12:05:28Z” level=info msg=“using inmemory blob descriptor cache” go.version=go1.6.3 instance.id=3a214896-6bdb-47f9-aee6-7fe7d25d0789 version=v2.5.0
time=“2016-08-21T12:05:28Z” level=info msg=“listening on [::]:5000” go.version=go1.6.3 instance.id=3a214896-6bdb-47f9-aee6-7fe7d25d0789 version=v2.5.0

time=“2016-08-21T12:05:42Z” level=info msg=“response completed” go.version=go1.6.3 http.request.host=“178.162.207.234:5000” http.request.id=a8d7297b-8f9b-45e8-a2a4-a2b3bb05ace1 http.request.method=GET http.request.remoteaddr=“178.162.207.105:53753” http.request.uri="/v2/" http.request.useragent=“docker/1.12.1 go/go1.6.3 git-commit/23cf638 kernel/3.13.0-52-generic os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.1 \(linux\))” http.response.contenttype=“application/json; charset=utf-8” http.response.duration=4.884835ms http.response.status=200 http.response.written=2 instance.id=3a214896-6bdb-47f9-aee6-7fe7d25d0789 version=v2.5.0
178.162.207.105 - - [21/Aug/2016:12:05:42 +0000] “GET /v2/ HTTP/1.1” 200 2 “” “docker/1.12.1 go/go1.6.3 git-commit/23cf638 kernel/3.13.0-52-generic os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.1 \(linux\))“
time=“2016-08-21T12:05:42Z” level=error msg=“response completed with error” err.code=“manifest unknown” err.detail=“unknown tag=latest” err.message=“manifest unknown” go.version=go1.6.3 http.request.host=“178.162.207.234:5000” http.request.id=dc1f26c5-2f33-4971-bf63-9cb3333d024e http.request.method=GET http.request.remoteaddr=“178.162.207.105:53754” http.request.uri=”/v2/library/hello-world/manifests/latest” http.request.useragent=“docker/1.12.1 go/go1.6.3 git-commit/23cf638 kernel/3.13.0-52-generic os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.1 \(linux\))” http.response.contenttype=“application/json; charset=utf-8” http.response.duration=3.566025ms http.response.status=404 http.response.written=96 instance.id=3a214896-6bdb-47f9-aee6-7fe7d25d0789 vars.name=“library/hello-world” vars.reference=latest version=v2.5.0
178.162.207.105 - - [21/Aug/2016:12:05:42 +0000] “GET /v2/library/hello-world/manifests/latest HTTP/1.1” 404 96 “” “docker/1.12.1 go/go1.6.3 git-commit/23cf638 kernel/3.13.0-52-generic os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.1 \(linux\))”

Can you help me to solve my problem ?


(Milad Khoshdel) #2

I changed my registry mirror server to ubuntu 14.04 and both docker server and docker client version upgraded. but problem till remains.

docker version
Client:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 05:22:43 2016
OS/Arch: linux/amd64

Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 05:22:43 2016
OS/Arch: linux/amd64

What i need to do ?


(Milad Khoshdel) #3

I tried other docker version and result was the same in all case. no any idea ?