The Docker daemon uses This example overrides the default In the setup, you need to add this configuration in the Docker systemd service file If you use an HTTP proxy server, a systemd plugin directory will be created for the docker service: mkdir -p /etc/systemd/system/docker.service.d Create a file called [Service] Environment="HTTP_PROXY=http://proxy.example.com:80/" Alternatively, if you use an HTTPS proxy server, create another file called [Service] Environment="HTTPS_PROXY=https://proxy.example.com:443/" When configuring non-proxy addresses for Docker, you can specify them through the [Service] Environment="HTTP_PROXY=http://proxy.example.com:80/" "NO_PROXY=localhost,127.0.0.1,docker-registry.somecorporation.com" Or, HTTPS proxy server configuration: [Service] Environment="HTTPS_PROXY=https://proxy.example.com:443/" "NO_PROXY=localhost,127.0.0.1,docker-registry.somecorporation.com" Re-read the service configuration file: systemctl daemon-reload Restart Docker: systemctl restart docker Verify that the configuration was loaded: systemctl show --property=Environment docker refer to: https://docs.docker.com/config/daemon/systemd/ The above is the details of setting up Docker proxy under CentOS 7 (environment variable configuration of Systemd service under Linux). For more information about Docker configuration of systemd service, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Examples of new selectors in CSS3
>>: Several things to note when making a web page
Seamless carousel is a very common effect, and it...
The effect of this function is similar to vue的pro...
This article uses an example to describe how to u...
Table of contents Step 1: Install node_modules in...
Implementing responsive layout with CSS Responsiv...
Preface With the development of big front-end, UI...
There are many MySQL variables, some of which are...
Grid layout Attributes added to the parent elemen...
Preface: Partitioning is a table design pattern. ...
Today's screen resolutions range from as smal...
Table of contents 1. Relationship between parent ...
Recently, the business side reported that some us...
Introduction: AD is the abbreviation of Active Di...
1. HBase Overview 1.1 What is HBase HBase is a No...
Table of contents Common payment methods in proje...