转载请注明出处 http://www.paraller.com
原文排版地址 点击跳转nginx
转载请注明出处 来源:
paraller's blogdocker
由于本身的云主机pull/push image到Docker hub下载速度慢和常常性抽风,因而在本身的主机上搭建registry存放 image,简述搭建过程和列出遇到的坑。ubuntu
docker-compose.ymlcentos
registry: image: registry ports: - "5000:5000" volumes: - /opt/data/registry:/tmp/registry environment: - STORAGE_PATH:/tmp/registry - SETTINGS_FLAVOR:dev
default.conf安全
# registry server { listen 80 ; server_name docker.paraller.com; location / { proxy_pass http://$localeIP; } }
/etc/sysconfig/dockercurl
other_args="--insecure-registry docker.paraller.com:5000"
docker tag paraller/nginx docker.paraller.com:5000/paraller/nginx:3.0
一、没有在docker文件配置过滤IPthis
Error response from daemon: invalid registry endpoint https://docker.paraller.com:5000/v0/: unable to ping registry endpoint https://docker.paraller.com:5000/v0/ v2 ping attempt failed with error: Get https://docker.paraller.com:5000/v2/: EOF v1 ping attempt failed with error: Get https://docker.paraller.com:5000/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry docker.paraller.com:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/docker.paraller.com:5000/ca.crt
二、标签制做错误url
Repository XXX not found