gpt4 book ai didi

docker - 我们在哪里可以定义要用于Docker的存储库?

转载 作者:行者123 更新时间:2023-12-02 19:34:15 25 4
gpt4 key购买 nike

默认情况下,Docker连接到Docker Hub注册表,在Ubuntu OS中该配置在哪里?

如果需要指向我们自己的公司存储库或任何其他存储库,我们可以在哪里配置相同的存储库?

最佳答案

docker pull 引用中:

Pull from a different registry

By default, docker pull pulls images from Docker Hub. It is also possible to manually specify the path of a registry to pull from. For example, if you have set up a local registry, you can specify its path to pull from it. A registry path is similar to a URL, but does not contain a protocol specifier (https://).

The following command pulls the testing/test-image image from a local registry listening on port 5000 (myregistry.local:5000):

$ docker pull myregistry.local:5000/testing/test-image

您可能会注意到,最后还有一个指向 insecure registries的链接,因为您可能需要进一步配置Docker守护程序。

关于docker - 我们在哪里可以定义要用于Docker的存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47757605/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com