How do I use docker on Win 8.1 (boot2docker) both behind a proxy and without a proxy?

I need to use docker both at home (without a proxy) and at work (with a corporate proxy).

Solutions I found on internet involve creating a machine docker-machine create or editing the /var/lib/boot2docker/bootlocal.sh.

  • subgit timeout waiting for pid file
  • Native Docker on Windows
  • Invoke docker container from Jenkins pipeline which is also running as docker container on Windows for docker (for Windows 10)
  • udhcpc failed to get a DHCP lease GNS3
  • Selenium grid error PROXY_REREGISTRATION and session lost
  • Mesos killing tasks. Failed to determine cgroup for the 'cpu' subsystem
  • Which is the right way to set and unset the proxy depending on needs?

  • Kubernetes v1.2.2 api-server dosen't start
  • Apache Kafka IO errors
  • Running virtual hosts on different ports of the same container using jwilder/nginx-proxy
  • Sidekiq using the incorrect url for redis
  • Docker - oracle.kv.FaultException: Could not contact any RepNode
  • Docker Akka-Http application endpoint not reachable
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.