Docker Installation- Mac or Ubuntu

Docker is an amazing software. It has numerous uses and can be useful in multiple ways. Explaining what docker exactly is out of the scope of this blog. The instructions given below are only for installation. If you want to know more about docker you can visit

For Mac users:

You can download the Docker for Mac from here . Click on the “Get Docker” and your .dmg file will be downloaded, install the .dmg file.

To check if your installation is working fine or not type:

docker run hello-world

If you can see “Hello from docker” then you are done!

For Ubuntu users:

curl -sSL | sh
# After the above script finishes execution completely
# Replace <your_user> with your username 
sudo usermod -aG docker <your_user>

NOTE: Docker installation is done. You have to log out and in log to start using docker.

After logging back in check if the following command is running successfully or not

docker run hello-world

If it does then your docker installation is done.

Leave Comment

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see