Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Coolicky/4bed97675a3cc347b1dc31903cc1d7ff to your computer and use it in GitHub Desktop.
Save Coolicky/4bed97675a3cc347b1dc31903cc1d7ff to your computer and use it in GitHub Desktop.
Downgrading Docker version
#update the apt cache
`sudo apt update`
#List docker versions
`sudo apt-cache madison docker-ce`
#copy the required one
#stop docker service
`sudo systemctl stop docker`
#Remove docker
`sudo apt remove -y docker-ce docker-ce-cli`
#Install appropriate version
`sudo apt install -y docker-ce=5:25.0.5-1~debian.12~bookworm docker-ce-cli=5:25.0.5-1~debian.12~bookworm`
#Replace with the desired version.
#Containers should start but You might want to `docker compose up -d` just in case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment