问题:怎么不通过docker hub中转直接pull gcr(谷歌镜像仓库)的镜像呢?

1.shadowsocket开代理
本人使用的是deepin深度操作系统(感谢fenghan大神的指导),直接在商店下载Shadowsocket-QT5,配置代理信息:如下填写自己购买的代理服务
Shadowsocket-QT5
2.设置docker代理配置

sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="ALL_PROXY=socks5://127.0.0.1:1080"
root@:~#systemctl show --property=Environment docker
Environment=ALL_PROXY=socks5://127.0.0.1:1080

3.重启docker服务

root@:~# systemctl daemon-reload
root@:~# systemctl restart docker

4.docker pull 谷歌仓库镜像

root@:~# docker pull gcr.io/google_containers/pause-amd64:3.0
3.0: Pulling from google_containers/pause-amd64
a3ed95caeb02: Pull complete 
f11233434377: Pull complete 
Digest: sha256:163ac025575b775d1c0f9bf0bdd0f086883171eb475b5068e7defa4ca9e76516
Status: Downloaded newer image for gcr.io/google_containers/pause-amd64:3.0
root@:~# docker images
REPOSITORY                             TAG                 IMAGE ID            CREATED             SIZE
stephenlu/pause-amd64                  3.0                 78ba6fae6829        3 weeks ago         747 kB
gcr.io/google_containers/pause-amd64   3.0                 99e59f495ffa        20 months ago       747 kB
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐