-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1 registry - error pulling images with docker 1.8 / OEL 7.1 #15538
Comments
IIRC, Docker Hub is using both a V1 and V2 registry, where Docker 1.6(?) and above clients will automatically use the V2 endpoints. A hybrid setup was described in the old documentation http://docs.docker.com/v1.6/registry/deploying/#configure-nginx-with-a-v1-and-v2-registry but I'm not sure if that setup is still supported. @dmp42 should docker 1.8 still be able to talk to a 1.0 registry? |
@vshiva can you provide docker daemon logs (in debug mode)? Thanks. |
$ uname -a command tried docker daemon logs (debug mode) DEBU[0054] Calling POST /images/create |
Seems to be the same endpoint problem like in #15558 |
❯❯❯ docker version
Client:
Version: 1.8.1
API version: 1.20
Go version: go1.4.2
Git commit: d12ea79
Built: Thu Aug 13 19:47:52 UTC 2015
OS/Arch: darwin/amd64
Server:
Version: 1.8.1
API version: 1.20
Go version: go1.4.2
Git commit: d12ea79
Built: Thu Aug 13 02:49:29 UTC 2015
OS/Arch: linux/amd64 ❯❯❯ docker info
Containers: 0
Images: 0
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 0
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.0.9-boot2docker
Operating System: Boot2Docker 1.8.1 (TCL 6.3); master : 7f12e95 - Thu Aug 13 03:24:56 UTC 2015
CPUs: 1
Total Memory: 996.2 MiB
Name: docker
ID: WIHL:JSS5:WLZA:W6DM:TNJX:WJPF:BGXB:4LS7:HBHB:JNQQ:VO6D:JBSJ
Debug mode (server): true
File Descriptors: 10
Goroutines: 17
System Time: 2015-08-17T22:44:27.019608301Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
provider=vmwarefusion ❯❯❯ uname -a
Darwin Dry-Bones.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64 Environment details: on a Mac, using How reproducible: very Steps to Reproduce:
Actual Results: Expected Results: it downloads the image Additional info: This works in We think it's related to this issue, and that it's a ❯❯❯ export DOCKER_CONTENT_TRUST=1
❯❯❯ docker pull private-registry.com/elasticsearch:1.7.1
Error establishing connection to trust repository: Get https://private-registry.com/v2/: remote error: handshake failure
Get https://private-registry.com/v2/: remote error: handshake failure I didn't necessarily expect that command to work, but I would have expected it to mention something about I'm not using a firewall or anything, and images like Edit: I updated my |
If I Request:
Response:
|
Lastly, we were able to reproduce this on Ubuntu that was not using |
@CWSpear: +1, reproduced with boot2docker 1.8.1 + docker 1.8.1 |
@dmp42 true, might be different. |
+1 reproduced the same problem with docker 1.8.1. |
+1 We're also experiencing this using 1.8.1 to talk to our internally-hosted Artifactory running 3.6 (which only supports docker v1 repos), whereas pre-1.8 versions of docker work fine. However, I just discovered that |
@CWSpear export DOCKER_CONTENT_TRUST=1 will enable trust, which is a v2 feature only, and that will definitely not work without notary. Everybody here: please, no +1 without any details about your exact configuration. I just started a registry: Then pushed to it and pulled from it successfully using docker 1.8.1. If you are experiencing issues:
Thanks. |
@dmp42 has informed me we will not be leaving So the next alternative would be to allow |
@CWSpear did you get information or logs from artifactory? |
No. But I did find out that we're using Artifactory 3.6.0 and I found this link: http://www.jfrog.com/confluence/display/RTF/Artifactory+4.0.2. Support for docker 1.8 was added in that 4.0.2 version. |
Ah thanks a lot for the info @CWSpear People: if you are using Artifactory see above ^. |
I found the original ticket which may be helpful to you and others (logging from the client I could never find), and it shows that this fix was applied in the Artifactory 3.9 branch, as well: https://www.jfrog.com/jira/browse/RTFACT-7920 |
v1 support has been deprecated. Let me close this issue. |
I'm on docker 1.8 (docker-engine.x86_64 / 1.8.0-1.el7 )
I'm trying to pull images hosted on my internal corporate registry.
using
docker pull registry.mycorp.com/myfavimg
this results in
Could not reach any registry endpoint
However I'm able to pull from docker hub without any issue
$ docker info
Containers: 0
Images: 15
Storage Driver: devicemapper
Pool Name: docker-252:1-104464387-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 2.617 GB
Data Space Total: 107.4 GB
Data Space Available: 104.8 GB
Metadata Space Used: 2.404 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.145 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Data loop file: /scratch/docker/devicemapper/devicemapper/data
Metadata loop file: /scratch/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.8.13-98.el7uek.x86_64
Operating System: Oracle Linux Server 7.1
CPUs: 24
Total Memory: 141.4 GiB
ID: GFRH:Y3RH:66XS:XED5:N7KJ:V4RG:O4M6:INTA:DDIL:BNLL:DJ3N:ARCM
*$ docker version *
Client:
Version: 1.8.0
API version: 1.20
Go version: go1.4.2
Git commit: 0d03096
Built: Tue Aug 11 16:48:33 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.0
API version: 1.20
Go version: go1.4.2
Git commit: 0d03096
Built: Tue Aug 11 16:48:33 UTC 2015
OS/Arch: linux/amd64
The text was updated successfully, but these errors were encountered: