Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以通过使用不同的标签将完全不同的图像存储在单个 Docker 存储库中吗?
例如username/myrepo:software,username/myrepo:code
username/myrepo:software
username/myrepo:code
如果是这样,怎么做?
是的。标签的格式为 [url]/[user]/image[:tag]。如果您可以在“url”处以“用户”身份进行身份验证,则可以在其中存储任意数量的带有任意数量标签的存储库。
在通常的情况下,你的“代码”和“软件”标签会以某种方式相关,比如有一个共同的祖先,但没有什么可以强制执行该规则。