lqwqc987
V2EX  ›  Docker

docker 如何推送镜像到私有仓库。

  •  
  •   lqwqc987 · Dec 1, 2020 · 2305 views
    This topic created in 2029 days ago, the information mentioned may be changed or developed.
    我有一台私有仓库 A ( IP:1.1.1.1 )服务器,B 服务器上使用 docker push 1.1.1.1:5000/mytomcat 可以成功推送,但是我想修改他的默认仓库地址 就是使用 docker push mytomcat 的时候能成功推送到我的 A 服务器上在修改了 daemon.json 配置文件的 insecure-registries 和 registry-mirrors 参数都没有用。请问有没有其他方法?
    4 replies    2020-12-01 22:02:56 +08:00
    thet
        1
    thet  
       Dec 1, 2020
    只能用 docker push 1.1.1.1:5000/mytomcat 推送到 A 服务器吧
    lqwqc987
        2
    lqwqc987  
    OP
       Dec 1, 2020
    好吧,谢谢了
    lqwqc987
        3
    lqwqc987  
    OP
       Dec 1, 2020
    @thet 好吧,谢谢了
    Mai1me
        4
    Mai1me  
       Dec 1, 2020 via Android
    alias
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3774 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 04:22 · PVG 12:22 · LAX 21:22 · JFK 00:22
    ♥ Do have faith in what you're doing.