This is a crosspost from adventofdocker.com
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:
Platform | x86_64 / amd64 | arm64 / aarch64 | arm (32-bit) | ppc64le | s390x |
---|---|---|---|---|---|
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:
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
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 (jonas@sliplane.io) and I will help you out!
What's next?
Tomorrow we are going to learn how to 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
Top comments (9)
Usually if i get chocolade-calendar - i'll open all doors in the same day :D
fantastic
Thanks!
i create the image successfully, but when i run it, it's run and give the cotainer id, but when i type 'docker ps' it doesnt show in the table, why?
Try
docker ps -a
the container is exiting immediately (thats on purpose).
docker ps
only shows running containers,docker ps --all
ordocker ps -a
shows all of them. Thats why you only see it with the all flag! You can see the documentation withdocker ps --help
, there you see the explanation:)This will be fun!
I hope so!:D Anything specific you want to learn?
i mean i can see that container in the 'docker ps -a' only