Install Docker ToolBox Locally

If you have followed the guide to install Minishift locally you may have noticed that I personally prefer to use VirtualBox on my Windows PC instead Hyper-V due to some issues I had which I didn't want to spend much time on. Unfortunately, without Hyper-V on Windows I cannot install Docker for Windows and I have to use the legacy Docker Toolbox. But that's ok! (I should be using Linux operating systems anyway but I am not that brave just yet).
This mini guide shows how to install Docker Toolbox using VirtualBox virtualization to run containers that we can use, for example, to have a nice continuous integration pipeline execution from our local environment (we will see that in future posts).
  1. Install Docker Toolbox for Windows
  2. Run Docker Quickstart Terminal. This will create a virtual machine (called default) on your VirtualBox and will set some environment variables so that your terminal is ready to use the docker virtual machine.
  3. Stop docker machine
    docker-machine stop
  4. Add a shared drive on your docker machine's VM in Virtual Box pointing to your development folder. Notice the name using a linux notation. This will come handly later on.

  5. Start again docker machine
    docker-machine start
  6. Display the commands to set up the environment for the Docker client and follow the instruction on how to run the next command
    docker-machine env
  7. Run the following command to configure your shell, or whichever the previous step told you to run
    eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env)