NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.81k stars 13.91k forks source link

Configure Docker proxy without configuring proxy for entire system #103559

Open jamal opened 3 years ago

jamal commented 3 years ago

Describe the bug There are situations where you may want to set proxy env vars for Docker without configuring a proxy for the entire system. For example, for some corporate VPNs / proxies where you are split tunneling traffic and only want Docker and similar tools to use the proxy.

To Reproduce Steps to reproduce the behavior:

  1. Enable Docker using virtualisation.docker.enable = true
  2. Try to docker pull from a registry that is behind a proxy

Expected behavior In addition to being able to set networking.proxy on the system to define the proxy for Docker, it would be good to be able to override the proxy for just Docker.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info