Step 2: Configure Docker Daemon Proxy Settings

The Docker daemon must be explicitly configured to route outbound traffic through the proxy.

  1. Configure the Docker service to use the proxy by defining proxy environment variables.

    sudo mkdir -p /etc/systemd/system/docker.service.d 
    sudo nano /etc/systemd/system/docker.service.d/proxy.conf
  2. Define proxy exclusions to ensure direct access to:

    • Localhost

    • Internal container registries

    • Internal Ansys HPC Platform Services components

    Add the following, replacing 10.0.0.1:8080 with your proxy details:

    [Service] 
    Environment="HTTP_PROXY=[http://10.0.0.1:8080](http://10.0.0.1:8080)" 
    Environment="HTTPS_PROXY=[http://10.0.0.1:8080](http://10.0.0.1:8080)" 
    Environment="NO_PROXY=localhost,127.0.0.1,your.internal.registry.com" 
    
  3. Restart the Docker service to apply the configuration.

    sudo systemctl daemon-reload 
    sudo systemctl restart docker 
    
  4. Verify that the Docker daemon can successfully pull base images from external registries.

This step ensures that all daemon‑level operations, including base image pulls, function correctly in the secured network.