skip to Main Content

We have a private harbor registry that’s insecure. We use docker client on a centos7 VM to push /pull images. We lost the docker client centos7 VM so have installed a new one. The issue I see is I log into the registry but when I do "docker image list" or "docker images" it doesn’t show the images previously loaded. I’m not sure why?

[udmuser1@vtc-spk-auto10 ~]$ docker image list
REPOSITORY TAG IMAGE ID CREATED SIZE

If I do a docker load -i image on the new linux VM then docker push I do see the image when doing "docker image list" on the registry.

[udmuser1@vtc-spk-auto10 ~]$ docker image list
REPOSITORY TAG IMAGE ID CREATED SIZE
harbor01.ims.net/library/f5-fluentd v1.4.2 b96d9e18a71c 9 months ago 495 MB

I’m unclear why I don’t see the images that were loaded by the previous linux VM.

Thanks for any input on this.

John

4

Answers


  1. The container Registry is a place where you push/pull images to and from.

    Your local Docker Client contains only the images that fulfil the criteria:

    1. The image was pulled from a registry
    2. The image was build (on that machine)

    The container images you are not synchronized with your registry, you need to explicitly push and pull those images.

    Login or Signup to reply.
  2. Your local Docker client would show you images that are part of its docker daemon in other words the images present on your client. You would need to setup synchronization if you want similar images on both the ends.

    Login or Signup to reply.
  3. Your private repository and local machine are two different things. You can’t get to the images in your private repository if you lose access to it.

    Login or Signup to reply.
  4. To list all image repositories that contain at least one tagged image, run this curl command:

    curl https://registry.io/v2/_catalog
    {"repositories":["alpine","postgres"]}
    

    If there are image repositories in a registry that don’t possess a single tag, and instead only possess digests e.g. ubuntu@sha256:ac13c5d2, those will be omitted from the output. If a registry contained ubuntu@sha256:ac13c5d2, alpine:latest, and postgres:15.1, Output from /v2/_catalog would read as {"repositories":["alpine","postgres"]}.

    Images can be obtained in a more granular and complete method through use of:
    https://registry.io/v2/{image}/manifests/{digest} for images with digests
    https://registry.io/v2/{image}/tags/list for images with tags

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search