5.3. プロキシーの背後にある CodeReady コンテナーの開始
環境変数や設定可能なプロパティを使って、定義されたプロキシの背後でCodeReady Containersを起動することができます。
注記
SOCKS プロキシーは OpenShift Container Platform ではサポートされません。
前提条件
-
ホストマシンで既存の OpenShift CLI (
oc) 実行可能ファイルを使用するには、no_proxy環境変数の一部として.testingドメインをエクスポートします。組み込みoc実行可能ファイルには手動設定は必要ありません。埋め込みoc実行可能ファイルの使用についての詳細は、Accessing the OpenShift cluster with the OpenShift CLI を参照してください。
手順
http_proxyおよびhttps_proxy環境変数を使用するか、以下のようにcrc config setコマンドを使用してプロキシーを定義します。crc config set http-proxy http://proxy.example.com:<port> crc config set https-proxy http://proxy.example.com:<port> crc config set no-proxy <comma-separated-no-proxy-entries>
$ crc config set http-proxy http://proxy.example.com:<port> $ crc config set https-proxy http://proxy.example.com:<port> $ crc config set no-proxy <comma-separated-no-proxy-entries>Copy to Clipboard Copied! Toggle word wrap Toggle overflow プロキシーがカスタム CA 証明書ファイルを使用する場合は、以下のように設定します。
crc config set proxy-ca-file <path-to-custom-ca-file>
$ crc config set proxy-ca-file <path-to-custom-ca-file>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
注記
CodeReady コンテナーの設定に設定されたプロキシー関連の値は、環境変数を介して設定される値よりも優先されます。