This is a quick guide on how to get started with Docker.
Installation Methods
Method 1: Automated install script
copy this code
Method 2: Manual installation via package manager
Ubuntu
copy this code
Fedora
copy this code
Post Installation Steps
To also install docker compose, run the commands below.
copy this code
To make sure docker is always running, enable the systemd service.
copy this code
You may also find it helpful to add the current user to the docker group so you don't have to call sudo every time.
copy this code
Finally, verify that docker and docker compose have successfully been installed by checking for their versions.
copy this code