How to Install Docker on Ubuntu 26.04

To install Docker on Ubuntu 26.04, add Docker’s official repository.

Step 1 : Update.

Step 2 : Install CA certificates and curl.

Step 3 : Add Docker’s GPG key.

Step 4 : Add the repository. Unquoted EOF so $(…) expands (codename / arch).

Step 5 : Update again.

Step 6 : Install Docker Engine.

Step 7 : Check the version.

Step 8 : Check Compose.

Step 9 : Run a test container.

You have installed Docker on Ubuntu 26.04.