Docker Registry에 image를 push하기 위해서 /etc/docker/daemon.json
파일을 다음과 같이 작성하고 docker를 재시작합니다.
{ "registry-mirrors":["http://docker.opencloudengine.org:80"], "insecure-registries":["http://docker.opencloudengine.org:80"] }
이미지를 Push하기 위해서 다음의 커맨드를 실행합니다.
# docker login http://docker.opencloudengine.org # docker pull hello-world ✔ Using default tag: latest latest: Pulling from library/hello-world 2db29710123e: Pull complete Digest: sha256:6e8b6f026e0b9c419ea0fd02d3905dd0952ad1feea67543f525c73a0a790fefb Status: Downloaded newer image for hello-world:latest docker.io/library/hello-world:latest # docker tag hello-world docker.opencloudengine.org:80/hello-world # docker push docker.opencloudengine.org:80/hello-world 1 ✘ Using default tag: latest The push refers to repository [docker.opencloudengine.org:80/hello-world] e07ee1baac5f: Pushed latest: digest: sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4 size: 525