Docker mirror push error
The registry
on the server has already started
Read the next document to use Insecure Registry
to add DOCKER_OPTS="--insecure-registry myregistrydomain.com:5000"
But did not find /etc/sysconfig/docker
this document ,所以就在docker.service
added the following (centos7 seems not /etc/sysconfig/docker
this document)
ExecStart=/usr/bin/docker daemon --registry-mirror=https://187wuopo.mirror.aliyuncs.com --insecure-registry 121.42.217.35:5000 -H fd://
sudo docker push 121.42.217.35:5000/php:7
Error:
Get https://121.42.217.35:5000/v1/_ping: tls: oversized record received with length 20527
Feeling is DOCKER_OPTS
misplaced place …