轉載請註明出處 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