Wilt u leren hoe u de Docker Outbound Proxy Configuration uitvoert? In deze zelfstudie gaan we een Docker-server achter een proxy configureren om toegang te krijgen tot het internet en de Docker-afbeeldingen te downloaden met behulp van de HTTP_PROXY en de HTTPS_PROXY variabelen.
Zelfstudie met betrekking tot Docker:
Op deze pagina bieden we snelle toegang tot een lijst met tutorials met betrekking tot Docker.
Tutorial Docker – Proxy Configuration
Create the required Docker folder named docker.service.d.
Create the required Docker file named proxy.conf.
Edit the Proxy configuration file from the Docker service.
If your proxy requires authentication, add the the following configuration to the Proxy file.
In our example, we set the proxy server 192.168.10.1 using the 3128 port.
In our example, we authenticate the Docker proxy access using the username bruno and the password kamisama123.
If your proxy does not require authentication, use the following proxy configuration instead.
In our example, we set the proxy server 192.168.10.1 using the 3128 port.
Reload systemd manager configuration.
Restart the Docker service.
Congratulations! You have finished the Docker proxy configuration.
Testing Docker – Download Image Using Proxy
Before adding the Docker proxy configuration, you are not able to pull a docker image.
After adding the Docker proxy configuration, you are able to pull a docker image.
You have finished the download of a Docker image using a proxy server.