Docker update to latest version

AI-generated summary

The discussion revolves around updating Docker to the latest version on an Ubuntu 22.04 server. forummaster initially followed the installation guide but wondered if the commands used (sudo apt install docker.io and sudo apt install git) would keep Docker updated.

Architect suggested checking the web interface updater at /admin/update, while pfaffman recommended running apt-get update and apt-get upgrade to update Docker. forummaster clarified that in Ubuntu, “apt” is sufficient for these commands.

However, Architect questioned whether apt upgrade would update Docker. forummaster believed it should, as Docker was installed from the Ubuntu repositories.

A guide shared by JammyDodger mentioned the possibility of updating Docker via a script, which Architect attempted but advised against due to a site crash.

I followed the recommended installation guide here: discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub

These are the only commands required for docker install:
sudo apt install docker.io
sudo apt install git

Is that going to keep docker updated to the latest version?

I’m running Ubuntu server 22.04.

There is the updater in the web interface can be used to update docker and will tell you if it is up to date at (site url)/admin/update.

You can

apt-get update; apt-get upgrade

You can also configure apt to automatically apply updates and reboot if you search.

Wouldn’t it be apt-get?

“-get” is no longer required in Ubuntu, so just “apt” is fine for all commands.

My question was more related to Ubuntu repositories with docker and if they package the latest version. I can check with the 22.04 repos. Thanks

“apt upgrade” will update ubuntu, but does that update the docker?

For app rebuild is cd/var/discourse then ./launcher rebuild app

There’s more info in this guide you may find useful

It should update docker since the original command is
sudo apt install docker.io so it is pulled from the ubuntu repositories.

From that guide referenced above:

Edit: This command seems to have caused site to crash, don’t recommend running that.