Install Docker Engine on Ubuntu
Updated August 29, 2026
For Ubuntu, use Docker's current Engine installation instructions and choose the repository method that matches your release. The package names and supported releases can change, so check the official Ubuntu guide before running commands.
After installation, verify the service and run a harmless test:
sudo systemctl status docker
sudo docker run --rm hello-world
If you want to run the client without sudo, add your user to the docker group only after understanding that group access is effectively root-equivalent:
sudo usermod -aG docker "$USER"
# sign out and back in, then:
docker run --rm hello-world
Do not mix Docker's repository, Ubuntu's packages, and old Compose installation instructions without checking which packages own the files. Keep images and volumes in mind before uninstalling or changing storage. docker version shows whether both the client and server are reachable.
Sources
related.
Ruslan Osipov
About the author