There are plenty of ways through which you can install docker. However, In this post I will highlight some very common ways of installing docker and getting started as quick as possible.
In case of Windows, you must have a 64 bit machine with Hyper-V enabled in order to work with docker. If you have Windows 10 with Hyper-V enabled then you can use Docker for Windows download and install it. If you are using older versions of Windows then you can download the Docker Toolbox for Windows.
Note that if you try to spin up a Windows 10, 64 bit machine in Azure and try to install ‘Docker for Windows’ on it then it will not work because ‘Docker for Windows’ on Azure virtual machines is not yet supported.
Docker needs bash environment. Docker Toolbox for Mac and Windows comes with a Docker Command Line Terminal to interact with docker. However, in case of ‘Docker for Windows’ or ‘Docker for Mac’, this capability is built in to its command shell.
Want to try it but can’t or don’t want to install docker?
If you can’t or don’t want to install docker on your local machine, then you can get a Playground for Docker from Katacoda. This is one of the quickest ways to get started on docker without any installations.
Run your first few Docker Commands
If you are using Docker for Windows or Mac, you can directly run the command in the Command Line tool. However, If you are using Docker Toolbox then you can click on Docker Quick Start Terminal to interact with docker.
Once, the command line tool is open, you can run the following commands:
This command gives the information about docker on your machine.
Server Version: 1.10.0
Storage Driver: overlay
Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Network: bridge null host
Kernel Version: 4.1.13-1-lts
Operating System: Arch Linux
Total Memory: 745.9 MiB
This command provides the version number of docker.
Docker version 1.10.0, build 590d5108
Now that you have installed the docker and tried running these few commands and feeling a bit excited to try docker, I would like to take the opportunity to make you familiar with more docker commands in my next post.