4

I need to copy images from Docker Hub into a private registry. For example, I need redislabs/rebloom:2.2.2. Then, can I name it my-private-registry.com/my-organization/redislabs/rebloom:2.2.2? (Notice there is my-organization which I cannot modify.)

In other words, is a.com/b/c/d:v1.0 ok or not?

I read this post and see Docker can parse it. However, will some tools reject this? Will Containerd reject this? I am afraid that they accept it but fails somewhere, which may be very difficult to debug.

Thank you very much!

ch271828n
  • 15,854
  • 5
  • 53
  • 88
  • 1
    This should not be a problem for docker, most private docker trusted registry (DTR) are setup in this pattern. – LeelaPrasad Oct 24 '20 at 12:08
  • @LeelaPrasad Thanks very much! Could you please provide some links so I can read? – ch271828n Oct 24 '20 at 12:10
  • May not be much, but it might give you an idea on how it looks/works https://www.docker.com/blog/dtr/ – LeelaPrasad Oct 24 '20 at 12:18
  • @LeelaPrasad I do see it. But it only says things like ` docker tag alpine:latest /admin/alpine:latest`. I think `` is like `hello.com` but NOT like `hello.com/some-organization`? – ch271828n Oct 24 '20 at 12:20

1 Answers1

3

My day job uses image names with a similar structure (hosted on Amazon ECR) and they work fine with plain Docker, Compose, and Kubernetes. I would not expect to run into any trouble with this, unless the specific image repository has stricter rules.

David Maze
  • 130,717
  • 29
  • 175
  • 215