docker pull下拉镜像时报错"https://registry-1.docker.io/v2/: net/http: TLS handshake timeout"如何处理?

1. 往文件/etc/default/docker中加入以下内容:

DOCKER_OPTS="--insecure-registry $DOCKER_OPTS --insecure-registry registry.mirrors.aliyuncs.com"

2. 重启docker服务

$ sudo systemctl restart docker

posted @ 2020-04-28 22:13  Jello  阅读(932)  评论(0编辑  收藏  举报