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.

  • Why Docker on Virtualbox can't find my DockerFile?
  • Docker.io for Windows [closed]
  • docker compose 3 sysctls directive unsupported
  • Docker - What is the easiest way to launch phpunit testsuite
  • “unauthorized: Unauthorized” message when pushing Docker container to Bluemix
  • Docker container write permissions
  • Which is the right way to set and unset the proxy depending on needs?

  • How does ENTRYPOINT Docker directive react when extending images
  • How to get my docker centos sshd passwordless server running?
  • Docker composer, constraint - did not find expected key
  • How to get tomcat log from docker container running in atomic host
  • Docker with a Rails App-Workers not running
  • How to connect two HA group containers in Bluemix?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.