Skip to content

Cannot push/pull images with local registry #3654

Open

Description

@jbasb

Created as was requested in this issue.

I followed the instructions found here: https://hub.docker.com/_/registry

$ docker run -d -p 5000:5000 --restart always --name registry registry
$ docker pull ubuntu
$ docker tag ubuntu localhost:5000/ubuntu
$ docker push localhost:5000/ubuntu
Attempts to push or pull images time out with the following errors:
For docker push:

Get "http://localhost:5000/v2/": net/http: request canceled (Client.Timeout exceeded while awaiting headers)

For docker pull:

Error response from daemon: Get "http://localhost:5000/v2/": net/http: request canceled (Client.Timeout exceeded while awaiting headers)

Does anyone have pointers on how to troubleshoot this?

This was done on a VM running Linux Mint if that helps.

Activity

  1. Jamstah commented on Jul 5, 2022

    @Jamstah
    Collaborator

    This is WFM, as it was for @milosgajdos in distribution/distribution-library-image#139

    I have to suspect that this is to do with the networking configuration of the docker instance on the mint VM, but to get more information, do the test again and run docker logs registry afterwards. Then post the log to this issue.

    [jammy@ibm007470 ~]$ docker run -d -p 5000:5000 --restart always --name registry registry
    Unable to find image 'registry:latest' locally
    latest: Pulling from library/registry
    2408cc74d12b: Already exists 
    ea60b727a1ce: Already exists 
    c87369050336: Pull complete 
    e69d20d3dd20: Pull complete 
    fc30d7061437: Pull complete 
    Digest: sha256:bedef0f1d248508fe0a16d2cacea1d2e68e899b2220e2258f1b604e1f327d475
    Status: Downloaded newer image for registry:latest
    8bd0483c2671ec5def150589661beecfedc508857da68270c3091f0f7c1af868
    [jammy@ibm007470 ~]$ docker pull busybox
    Using default tag: latest
    latest: Pulling from library/busybox
    19d511225f94: Pull complete 
    Digest: sha256:3614ca5eacf0a3a1bcc361c939202a974b4902b9334ff36eb29ffe9011aaad83
    Status: Downloaded newer image for busybox:latest
    docker.io/library/busybox:latest
    [jammy@ibm007470 ~]$ docker tag busybox localhost:5000/busybox
    [jammy@ibm007470 ~]$ docker push localhost:5000/busybox
    Using default tag: latest
    The push refers to repository [localhost:5000/busybox]
    7ad00cd55506: Pushed 
    latest: digest: sha256:dcdf379c574e1773d703f0c0d56d67594e7a91d6b84d11ff46799f60fb081c52 size: 527
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions