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.
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
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.
- Open a shell program
- Few of the commands that you can run are :
- Docker version – it will show current version installed
- Docker ps – it will show any contained installed.
- 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)