Install Docker – Open Source Instructions

Here's the quickest way to install Docker on Ubuntu -- required for most container dev and many Kubernetes projects

Stacked shipping containers under a cloudy sky with the Kubernetes logo on the right.

You need open source Docker to build containers in the standard way and store their images in accessible repositories. This is a foundational part of building apps to run on Kubernetes.

Happily, it’s easy to install open source Docker engine and CLI on any modern Linux. We’ll use Ubuntu desktop as an example, and use snap.

Step 1: Use snap to install Docker

sudo snap install docker

Step 2: Make your user a member of the docker group

It then often makes sense to make your administrative user part of the Docker group, so they can call the Docker CLI without using sudo:

sudo usermod -aG docker $USER

Step 3: Reload group settings

Then you can reload settings for the docker group, making this effective:

newgrp docker

Step 4: Test

Now you can test to see if Docker is working and without sudo.

docker run hello-world

If all is well, this will run a test container that prints a message and exits.

LET'S TALK

Get in touch with Mirantis.

Whether you're planning a new platform, considering a migration, or just exploring options, we'll route your message to the right Mirantis team and get back to you within one business day.


Green circle with tbe number 1 inside.

You submit this form

Green circle with tbe number 2 inside.

Quick call to scope your needs

Green circle with tbe number 3 inside.

Solutions engineer follows up with a tailored plan


We see Mirantis as a strategic partner who can help us provide higher performance and greater success as we expand our cloud computing services internationally.

— Aurelio Forese, Head of Cloud, Netsons

image