Docker uses proxy pull GCR for warehouse mirroring

Source: Internet
Author: User
Tags docker hub
question: How not to transfer direct pull GCR (Google Mirror warehouse) image through Docker hub.

1.shadowsocket Open Agent
I am using the Deepin depth operating system (thanks to Fenghan, the guidance of the Great God), directly in the store download SHADOWSOCKET-QT5, configure proxy information: The following fill in their own purchase of proxy services

2. Setting up the Docker proxy configuration

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. Restart the Docker service

root@:~# systemctl daemon-reload
root@:~# systemctl Restart Docker

4.docker Pull Google Warehouse image

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 months ago 747 kb< /pre>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.