Unable to update Docker on Ubuntu 24.04.3 LTS

I’ve been running docker in a VM (based on Ubuntu 24.04.3 LTS) for the last year.

It is currently running docker v 28.4 but I would like to update to v29 that I am running on my other hosts.

Docker version on Ubuntu VM

$ sudo docker -v
Docker version 28.4.0, build d8eb465

Docker version on Debian 13 VM

sudo docker -v
Docker version 29.1.2, build 890dcca

Back on the Ubuntu VM, there are no package updates available but it doesn’t seem to check the Docker repositories despite me using apt to install docker when I built the VM and how I have managed updates over the last -+ year.

$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:2 http://ie.archive.ubuntu.com/ubuntu noble InRelease
Get:3 http://ie.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:4 http://ie.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:5 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1,349 kB]
Get:6 http://ie.archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [175 kB]
Get:7 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21.5 kB]
Get:8 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]
Get:9 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [915 kB]   
Get:10 http://ie.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]
Get:11 http://ie.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [378 kB]
Get:12 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [71.4 kB]      
Get:13 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [208 B]                 
Get:14 http://ie.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:15 http://ie.archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [7,132 B]
Get:16 http://ie.archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]
Get:17 http://ie.archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [11.0 kB]
Get:18 http://ie.archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Components [212 B]
Fetched 3,308 kB in 1s (3,506 kB/s)                                 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

If I follow the docker install guide to add the repository, it says there are no updates available but if I try to install docker, it deletes all of my containers.

Any idea what’s going on?

1 Like

You must have installed either the snap package or docker.io on Ubuntu. None of those are officially supported by Docker Inc. Since you say all your containers are deleted when you follow the official installation guide, that means you installed docker.io. The official installation guide starts with the instructions to delete that since that two are not compatible. docker.io on Ubuntu is supported by Ubuntu maintainers and how they start to support new versions entirely depends on them.

On second thought, maybe you just think your containers were deleted, because you don’t see them, since another docker is used. Try the following commands to see which docker you have.

dpkg -l 'docker*' | grep '^ii'
snap list docker
1 Like