Docker on Windows

If you are using Windows and need a Linux VM with Docker, there is an alternative to boot2docker.

– You must have 64-bit machine with VT enabled on your BIOS. You need to shutdown your computer for changes to take effect.

– Install VirtualBox

– Download Turnkey Linux Core 64-bit edition at turnkeylinux.org/mirrors (that is, turnkey-core-13.0-wheezy-amd64.iso)

– Create new VM at VirtualBox using the downloaded ISO. You may use Bridged Adapter on VirtualBox Network settings

– Follow Docker instruction at https://docs.docker.com/installation/debian

1. Install Kernel 3.8+ from wheezy-backports

(Note: Login to Webmin, Tools >> Text Editor.  sources.list is not existing in TKLinux)

Add the following line to your /etc/apt/sources.list

deb http://http.debian.net/debian wheezy-backports main

then install the linux-image-amd64 package (note the use of -t wheezy-backports)

$ sudo apt-get update
$ sudo apt-get install -t wheezy-backports linux-image-amd64

Once everything is done, restart your VM.

Check your new kernel version:

cat /proc/version

Output:

Linux version 3.16-0.bpo.3-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.16.5-1~bpo70+1 (2014-11-02)

2. Install Docker using the get.docker.com script:

curl -sSL https://get.docker.com/ | sh

Check docker version:

docker version

Output:

Client version: 1.3.1
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 4e9bbfa
OS/Arch (client): linux/amd64
Server version: 1.3.1
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 4e9bbfa

Turnkey Linux has built-in Shell in a Box (Web-based SSH client) and Webmin which are immensely useful especially for a newbie.

Advertisements

Subjectivity aside, leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s