Skip to content

Day 2 - Installation & Hello World!

Published:Β atΒ 12:00 AM

Today we are going to start with the installation of Docker and run our first container! This blog post should take you about 10 minutes.

Docker is available for all major platforms, Windows, Mac, and Linux. It even works on Raspberry Pi! Here’s an overview of the supported operating systems:

Platformx86_64 / amd64arm64 / aarch64arm (32-bit)ppc64les390x
Debianβœ…βœ…βœ…βœ…
Fedoraβœ…βœ…βœ…
Raspberry Pi OSβœ…
RHELβœ…βœ…βœ…
SLESβœ…
Ubuntuβœ…βœ…βœ…βœ…
Binariesβœ…βœ…βœ…

The easiest way to get started is to download the Docker Desktop application from the official website. Docker Desktop includes everything you need to get started with Docker and even comes with a graphical user interface.

I can’t explain it better than the official documentation, so please refer to the official documentation for installation instructions:

Once you have Docker Desktop installed, you can verify the installation by running the following command in your terminal:

docker info

You should get a bunch of information about your Docker installation, this is how it looks on my machine:

docker info output

To make sure that the installation was successful, we are going to run our first container.

For that, again open your terminal and run the following command:

docker run hello-world

docker run hello-world output

If you see the output above, your Docker installation was successful! πŸŽ‰

If not, please comment under this post or reach out to me via mail ([email protected]) and I will help you out!

What’s next?

Tomorrow we are going to learn some more basics on what Docker is, in two days we will build our first container! If you want to get a head start, run docker help and have a look at the different commands that Docker offers.

Until tomorrow, happy coding! πŸš€

Jonas


Previous Post
Day 1 - Welcome to Advent of Docker! 🐳
Next Post
Day 3 - What is Docker and why should I care?
Sponsor logo

Sliplane

Deploy your Docker Apps straight from your Github repository in less than 2 minutes with sliplane.io

Learn More β†’