我可以在斜杠中加上“ /”吗?在Docker(和Containerd)映像名称中? [英] Can I have extra slash "/" in Docker (and Containerd) image name?

查看:345
本文介绍了我可以在斜杠中加上“ /”吗?在Docker(和Containerd)映像名称中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将映像从Docker Hub复制到私有注册表中。例如,我需要 redislabs / rebloom:2.2.2 。然后,我可以将其命名为 my-private-registry.com/my-organization/redislabs/rebloom:2.2.2 吗? (请注意,存在我无法修改的我的组织。)

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.)

换句话说,是 a.com/b/c/d:v1.0 可以吗?

我读了这篇帖子,看到Docker可以解析它。但是,某些工具会拒绝吗?集装箱运输会拒绝吗? 恐怕他们会接受它,但是在某处失败,这可能很难调试。

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.

非常感谢您!

推荐答案

我的日常工作使用具有相似结构的图像名称(托管在Amazon ECR上),它们与普通Docker,Compose和Kubernetes都可以正常工作。除非特定的图像存储库具有更严格的规则,否则我不希望对此造成任何麻烦。

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.

这篇关于我可以在斜杠中加上“ /”吗?在Docker(和Containerd)映像名称中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆