Skip to content

Install Docker Engine on Ubuntu — by Docker Docs

beginnerpageLink only (©)Ubuntu 22.04, 24.04 and newer LTS releases listed on the page

Official install guide using Docker's apt repository, which installs the engine, CLI, containerd, buildx and compose plugins. It warns that with ufw or firewalld, published container ports bypass your firewall rules, and that Docker only supports iptables-nft and iptables-legacy.

Quick steps

  1. Add Docker's GPG key and apt repository
  2. Update the package index and install the Docker packages
  3. Verify with the hello-world image

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on docs.docker.com

Source: Install Docker Engine on Ubuntu by Docker Docs. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

dockerinstallubuntufirewall

More in Docker & Containers

Volumes — by Docker Docs

intermediatepage

Docs on persisting container data with volumes, which Docker calls the preferred mechanism, versus bind mounts that tie you to the host's folder layout. Mentions read-only mounts, subdirectory mounts, volume drivers for NFS/CIFS, and the gotcha that mounting over a non-empty directory hides its existing files. Volumes are not removed automatically when a container is deleted.