How to Install Docker

John John (304)

In this short guide, we'll learn how to install Docker Engine on any platform. Before we begin, we should make the distinction between Docker Engine (Enterprise) and Docker Engine (Community). Enterprise is designed for companies that require extra levels of support, service-level agreements, etc. In this guide we're going to focus on the Community edition.

Posted in these interests:
h/docker12 guides
Download Docker Desktop

If you've got access to a browser, you can easily download Docker Engine for your platform directly from Docker Hub. Visit the Docker Engine downloads page, and find your platform.

This method is easy, but you will need a Docker Hub account in order to download the package. Although, if you're using Docker you'll probably want a Docker Hub account at some point anyways.

Note: If you're looking to install Docker on your Raspberry Pi, please check out the guide we've written specifically for the Pi.

Docker also provides a convenience script that will work on most Linux distributions. To install using this script you can execute the following in a shell.

curl -fsSL -o

# Inspect the contents of before executing

sudo sh

Notice that we're inspecting the script before executing. This is a security measure to ensure you aren't executing malicious code on your system. If security is not a concern, you can run the following one-liner instead:

curl -sSL | sh

If you're having trouble installing Docker on your platform, please let me know in the comments below. I will try to assist and update this guide with better instructions and troubleshooting steps. Enjoy!

John John (304)
5 minutes

Docker images are made up of layers, and many times you'll want to see details on each layer of an image. This guide will show you how to show all layers of a Docker image.