2018年3月31日 星期六

docker 啟用 http private registry

https://docs.docker.com/registry/insecure/#deploy-a-plain-http-registry

private registry at 10.241.109.14:5555


/etc/docker/daemon.json  ==> 沒有則新增,加入以下內容(複製貼上時雙引號要重打)

{
  "insecure-registries" : ["10.241.109.14:5555"]
}

systemctl restart docker.service

systemctl status docker.service  ==> 確認正常執行



新增 image 到 private registry:

tag an image:

docker image tag ID 10.241.109.14:5555/IMAGE_NAME[:TAG]

ex:

nginx:1.13.5-alpine => id = 245a6s.....

docker image tag 245a 10.241.109.14:5555/nginx:1.13.5-alpine


docker image push 10.241.109.14:5555/nginx:1.13.5-alpine

沒有留言:

張貼留言