树莓派安装docker下载portainer下载失败问题(使用阿里云镜像加速)

pi@raspberrypi:~ $ sudo docker pull portainer/portainer
Using default tag: latest
latest: Pulling from portainer/portainer
772227786281: Downloading  1.369kB/117.4kB
96fd13befc87: Download complete 
bb58703fe575: Pulling fs layer 
e78fd3bfbc60: Waiting 
error pulling image configuration: download failed after attempts=6: net/http: TLS handshake timeout

登陆你的阿里云获取镜像加速地址:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

按照官方文档即可:

 

配置命令:

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://wvulosky.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

 

posted @ 2022-11-07 14:54  バカなの  阅读(1439)  评论(0编辑  收藏  举报