Diving with Docker

Today I will be Installing and using Docker Toolbox on Windows. Docker is revolutionizing the way we do install and maintain applications.

Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries – anything that can be installed on a server. This guarantees that the software will always run the same, regardless of its environment.

It is lightweight, open and secure. Docker containers are independent of each other and therefore  guarantees that the software will always run the same, regardless of its environment.

Docker can be installed on Windows, Mac or Linux. As a Microsoft oriented engineer, I will be covering Docker on Windows.

Docker for Windows requires Microsoft Hyper-V to run. Right now Docker for Windows runs on Windows 10 64-bit Pro, Enterprise and Education. It requires Virtualization to be enabled. Windows user on same machine shares the containers and images on that machine.

Typical Docker installation includes Docker Engine, Docker CLI client, Docker Compose, and Docker Machine.

Install the Docker on Windows

Installing Docker on windows is as easy as installing any other piece of software. All you have to do double click the installer msi and click next, next to finish. This is the easy and boring part. Actual work starts after the Docker is installed, which is how to use it.

If you haven’t already downloaded the installer (InstallDocker.msi), you can get it here.

Just simply follow the installation wizard  which includes accepting the license, authorizing the installer, and proceeding with the install.

When Installation finishes, leave “Launch Docker” ticked to open it automatically.

Docker icon will appear in status bar and will take few moments to perform some initial configuration of docker. The whale in the status bar indicates that Docker is running, and accessible from a terminal.

A popup success message will appear on successful installation with some suggested next steps, and a link to docker documentation
docker-windows-install-success-popup

Now to Confirm that Docket is installed successfully, you can old fashioned cmd.exe or powershell.exe or any other shell program and run commands to confirm.

  1. Open a shell program
  2. Few of the commands that you can run are :
    1. Docker version – it will show current version installed
    2. Docker ps – it will show any contained installed.
    3. docker info – it will detailed information regarding docker installation.

For more detailed information, please visit here

If you do not meet system requirements, you can install Docker Toolbox, which uses Oracle Virtual Box instead of Hyper-V.

Follow installation steps here to install Docker Toolbox.

I will be writing more about Containers in the next post and coming days. In the mean time you can have a read about Containers, Microsoft has great documentation for Window Containers (here)

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