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.

Installing Docker

You can easily download and install docker from the official site of docker for Mac, Linux or Windows machines.

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.

In case of Mac, If you have OS X 10.10.3 Yosemite or newer then you can use Docker for Mac for installation. If you have  OS X 10.8 “Mountain Lion” then you can use Docker Toolbox for Mac.

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:

docker info 

This command gives the information about docker on your machine.

docker –version

This command provides the version number of docker.

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.

Share This:

Install docker and run the first docker command
Tagged on:                 

One thought on “Install docker and run the first docker command

Leave a Reply

Your email address will not be published.