Ubuntu's apt repository has a package called 'docker'
File: engine/install/ubuntu.md
This page reads:
Installation methods
You can install Docker Engine in different ways, depending on your needs:
- Most users set up Docker’s repositories and install from them, for ease of installation and upgrade tasks. This is the recommended approach.
- Some users download the DEB package and install it manually and manage upgrades completely manually. This is useful in situations such as installing Docker on air-gapped systems with no access to the internet.
Issue
This omits a significant option: sudo apt install docker. This will be the option chosen by a) users taking a shot in the dark before firing up the ol' Google, and b) users who prefer not to fill their apt with lots of additional repositories, if they can help it. I fit both.
I have installed Docker through sudo apt install docker on both Ubuntu 20.04 "focal" on x86_64 WSL, and on Ubuntu 22.04 "jammy" on arm64 (a Raspberry Pi 4).
Suggestion
This "Install on Ubuntu" page should:
- List
sudo apt install dockeras an option, and - If it's preferable to use Docker's own repository instead (e.g. if the default repo doesn't update frequently, or whatever), then explain that.
Scope
I am raising this issue for the "Install Docker Engine on Ubuntu" page. It is also relevant to "Install Docker Compose on Ubuntu" (issue opened there), and might also be relevant to "Install Docker [Engine|Compose] on [Debian|etc.]".
More info
Excerpt from apt search docker on Ubuntu 20.04:
docker/focal 1.5-2 all
transitional package
docker-compose/focal 1.25.0-1 all
Punctual, lightweight development environments using Docker
docker-doc/focal-updates 20.10.12-0ubuntu2~20.04.1 all
Linux container runtime -- documentation
docker-registry/focal 2.7.1+ds2-7 amd64
Docker toolset to pack, ship, store, and deliver content
docker.io/focal-updates 20.10.12-0ubuntu2~20.04.1 amd64
Linux container runtime