Skip to content

Docker CLI is trying to use Docker Registry API V1 instead of V2 #133

@Vespira

Description

@Vespira

Hi,

I'm aware that my issue is probably not a big deal, but still, I can't find any documentation or people who seems to encounter this problem. So I'm posting here, after few hours of testing and research.

Note: ATM I'm trying this without TLS at all to simplify the process.
Note 2 : My private registry is added to the insecure registries and I disabled TLS verification, on my client-side Docker instance.

Description of my issue :
I have a private Docker Registry v2 on my local network, and I want to push an image from my local computer to this registry.

I do:
> docker tag my-image 172.19.x.x:5000/myimage-repo
And then:
> docker push 172.19.x.x:5000/myimage-repo

I got this output:
Put http://172.19.x.x:5000/v1/repositories/myimage-repo/: dial tcp 172.19.x.x:5000: getsockopt: no route to host

I tried to play a bit with url, but my Docker client-side, is trying to connect to reach something behind V1/repositories.

Versions & Specs :
I'm on Windows 10 and using Docker v17.03. The registry (v2.6.0) is a Docker container running on a VM.

How can I tell to Docker to reach registry v2 ? Thanks a lot,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions