Docker - 鏡像的發佈

5ea2e1180001e96319201080.jpg (1920×1080)

1、創建文件寫入IP:端口
   sudo vim  /etc/docker/daemon.json
   {"insecure-registries":["172.16.203.203:5000"]}

2、修改文件
  sudo vim /lib/systemd/system/docker.service
  在ExecStart下行添加 EnvironmentFile=-/etc/docker/daemon.json

3、重啓
  sudo systemctl daemon-reload

4、推送
  docker push 172.16.203.203:5000/hello-world

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章