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/

  • docker: having trouble running npm install after creating a new user
  • Docker: user change in terminal prompt
  • docker-compose error - unable to read file
  • Docker, How to replace capistrano tasks in docker
  • How to access a running docker containers external ip from within the container?
  • share ports between docker and vagrant
  • Which is the right way to set and unset the proxy depending on needs?

  • Trouble while logging to docker hub registry from bootdocker in windows
  • Synchronizing multiple servers and local machines with the same data / source code
  • Docker Quickstart Terminal: exit status 255
  • Can I get an image digest without downloading the image?
  • Is there a way to replicate pwd in a volume mount for docker in a boot2docker context?
  • Where could I find docker-standard environment variables like DOCKER_HOST?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.