通過daemon.json配置docker 2375 API端口,配置私有http倉庫


編輯daemon.json

vi /etc/docker/daemon.json

配置如下內容即可

{
    "hosts":[
        "tcp://0.0.0.0:2375",
        "unix:///var/run/docker.sock"
    ],
    "insecure-registries":[
        "develop-harbor.geostar.com.cn",
        "test-harbor.geostar.com.cn",
        "release-harbor.geostar.com.cn"
    ]
}

參考:

https://www.cnblogs.com/hongdada/p/11512901.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM