derak
(Cristian Deraco)
December 28, 2024, 10:32pm
1
Hi, I updated Docker through the “Upgrade” section. After that, I tried to update Discourse via the terminal (I use DigitalOcean’s Droplet Console). However, when running the command ./launcher rebuild app
, I get this error:
ERROR: Docker version 19.03.13 not supported, please upgrade to at least 20.10.0, or recommended 24.0.7.
But I had already done the update through the “Upgrade” admin interface on the website. Now nothing is working anymore. What could have gone wrong?
pfaffman
(Jay Pfaffman)
December 28, 2024, 10:41pm
2
In the web interface you updated Discourse_docker not docker itself.
apt update ; apt install docker-ce
Should upgrade docker, I think
You can check the version with
docker --version
1 Like
derak
(Cristian Deraco)
December 28, 2024, 11:53pm
3
Thank you. The command you provided did not work. I resolved it with the following solution from ChatGPT:
To update Docker on a DigitalOcean Droplet, follow these steps:
1. Check the Current Version of Docker
Run this command to see the currently installed Docker version:
docker --version
2. Update the Operating System
Make sure the operating system is up-to-date:
sudo apt update && sudo apt upgrade -y
3. Uninstall the Old Version of Docker (if necessary)
Remove any existing version of Docker:
sudo apt remove docker docker-engine docker.io containerd runc
4. Install the Latest Version of Docker
Follow these steps to install the latest version:
Add Docker’s Official Repository:
sudo apt-get install -y ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Install Docker:
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
5. Verify the Installed Version
Check if the new version has been installed:
docker --version
6. Restart Docker Services
After installation or upgrade, restart the Docker service:
sudo systemctl restart docker
7. Update Discourse
Once Docker is updated, try updating Discourse again:
cd /var/discourse
./launcher rebuild app
4 Likes