In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "Centos7 setting docker agent method", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's train of thought slowly in depth, together to study and learn "Centos7 set docker proxy method" bar!
In the centos6 version, if you configure the https_proxy agent of Docker, you only need to add the configuration in the / etc/sysconfig/docker configuration file, but in centos7 you will find that you can no longer use this configuration method for https_proxy configuration, because centos uses systemd to manage the process environment. We need the following configuration to apply the https_proxy configuration to create the directory.
Mkdir / etc/systemd/system/docker.service.d
Create a file
Touch / etc/systemd/system/docker.service.d/http-proxy.conf
Configure the http-proxy.conf file to add the following
[Service]
Environment= "HTTP_PROXY= http://proxy.ip.com:80"
Environment= "NO_PROXY=localhost,127.0.0.0/8,docker-registry.somecorporation.com,11.11.225.50"
Note: be sure to add the private library address to the no_proxy, otherwise, you will not be able to push the private database.
Daemon re-reload and restart docker
Systemctl daemon-reload
Systemctl restart docker
Check whether the variable is loaded
Systemctl show docker-property Environment
Thank you for your reading, the above is the content of "Centos7 setting docker proxy method". After the study of this article, I believe you have a deeper understanding of the method of Centos7 setting docker proxy, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.