Docker 아웃바운드 프록시 구성을 수행하는 방법을 알아보시겠습니까? 이 자습서에서는 인터넷에 액세스 하 고 HTTP_PROXY 및 HTTPS_PROXY 변수를 사용 하 여 Docker 이미지를 다운로드 하는 프록시 뒤에 Docker 서버를 구성 하려고 합니다.

도커 관련 자습서:

이 페이지에서는 Docker와 관련된 자습서 목록에 빠르게 액세스할 수 있습니다.

Tutorial Docker - Proxy Configuration

Create the required Docker folder named docker.service.d.

Copy to Clipboard

Create the required Docker file named proxy.conf.

Copy to Clipboard

Edit the Proxy configuration file from the Docker service.

Copy to Clipboard

If your proxy requires authentication, add the the following configuration to the Proxy file.

Copy to Clipboard

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.

Copy to Clipboard

In our example, we set the proxy server 192.168.10.1 using the 3128 port.

Reload systemd manager configuration.

Copy to Clipboard

Restart the Docker service.

Copy to Clipboard

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.

Copy to Clipboard

After adding the Docker proxy configuration, you are able to pull a docker image.

Copy to Clipboard

You have finished the download of a Docker image using a proxy server.