r/docker•
brrose

Simple setup on Windows

I've created a few simple scripts that can be utilized on Windows to setup a Linux host with docker in just a few seconds

You can find them here

Advantages of this :

  • The commandline is the only unified interface between Windows and other platforms (Some GUIs that aren't kitematic apparently achieve close parity using the docker remote API, but this is the most reliable interface)
  • I've seen people install the Windows container engine by mistake, when they actually meant to install the client
  • Kitematic is still catching up to be a complete interface
  • Linux Virtualization (via virtualbox) included and installed in one shot

The story for Windows just seems so incomplete/awkward for Docker. I just want to be able to use Linux containers for development regardless of what platform I'm using. Hopefully this page can help you achieve this. (I've also included some common commands to get users familiar with the CLI if this is truly their first time setting up Docker on Windows)

I also included a script that sets up SQL Server 2016 on Linux in a single command, which is something I think is attractive to those doing Windows development.

Feel free to give any feedback (other than 'haha Window$' or other snark ;))

Posted Dec 27, 2016, 4:58 PM UTC · edited

13
eshepelyuk•
  1. Docker Toolbox provides an installer, that setup Virtuslbox VM with Docker Engine inside. Plus it set up bash command line via Git for Windows. So you can get almost Linux expirience.

  2. A while ago, I've written a post that describe how to make Docker Toolbox expirience even more Linux'y . You can check it as well, http://eshepelyuk.github.io/2015/11/26/jvm-microservice-docker-windows.html

1
r00t_4orce•

I just have a question about why the process would start:

Get Started

Turn off Hyper-V (start Powershell with elevated permissions)

If you already have Hyper-V available to you, why not use the newer Native Docker for Windows instead of adding on the overhead and extra configuration layers etc. of Virtualbox and Docker-Machine?

Just curious.

1
brroseOP•

Native Docker for Windows requires Windows Professional or higher and relies on proprietary virtualization in Hyper-V. They added a switch for changing the cli target recently, it's still in Beta--see here. My script also requires less installation or configuration on the host machine--Docker for Windows is a very "Windows" experience; it sits in the tray, nags you if you turn on Hyper-V. The whole reason running things in a VM can be preferred sometimes is because it's sandboxed.

Personally, I find my way of doing things easier and one of my PCs is Windows Home :) To each their own!

1