How to deal with the error of docker image push? About -- secure registry

Alibaba cloud Q & A 2022-02-13 06:22:14 阅读数:639

deal error docker image push

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 121.42.217.35:5000 -H fd:// sudo docker push 121.42.217.35:5000/php:7

Report errors : Get https://121.42.217.35:5000/v1/_ping: tls: oversized record received with length 20527




Take the answer 1:

Hello! , /etc/default/docker This address . Please modify / add to DOCKER_OPTS as follows :

DOCKER_OPTS="--insecure-registry 121.42.217.35:5000"

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130622123409.html