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.