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"

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= --insecure-registry -H fd:// sudo docker push

Report errors : Get 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 :


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.