Alibaba cloud Q & A 2022-02-13 06:22:14 阅读数:639
On the server registry It's already started
Read the document to use Insecure Registry You want to add DOCKER_OPTS="--insecure-registry myregistrydomain.com:5000"
But I didn't find /etc/sysconfig/docker This document , So it's in docker.service The following has been added to （centos7 I don't think so /etc/sysconfig/docker This is the document ）
ExecStart=/usr/bin/docker daemon --registry-mirror=https://187wuopo.mirror.aliyuncs.com --insecure-registry 220.127.116.11:5000 -H fd:// sudo docker push 18.104.22.168:5000/php:7
Report errors ： Get https://22.214.171.124:5000/v1/_ping: tls: oversized record received with length 20527
Hello! , /etc/default/docker This address . Please modify / add to DOCKER_OPTS as follows ：
copyright：author[Alibaba cloud Q & A]，Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130622123409.html