#docker - October 2023

dockerArchived
1 messages

All things docker
Archive: https://archive.sweetops.com/docker/

October 2023
Kimberly Cottrell
Kimberly Cottrellabout 3 years ago
Writing this here incase it helps someone.

If you wanna play with docker compose watch but you're not running Docker Desktop, you'll notice you cannot download the 2.22 docker compose package from Docker's package repositories. After chatting with Docker in their Slack, it turns out they've done this intentionally to help get an upgrade out the door faster.

If you're unlucky like me and Docker Desktop just will not install and startup on your (in my case, Ubuntu 22.04) box, here is how to upgrade everything:

1. uninstall Docker Engine, compose, containerd.io, docker.io, etc (something like https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine)
2. install docker.io, docker-ce, etc (something like https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository)
3. go to here and download whatever version of compose fits your system architecture - https://github.com/docker/compose/releases/tag/v2.22.0
4. rm -rf ~/.docker
5. mkdir -p ~/.docker/cli-plugins
6. mv ~/Downloads/whatever-docker-compose-arch-here ~/.docker/cli-plugins/docker-compose
Technically, #6 for me is actually a symlink inbetween /usr/bin/compose and ~/.docker/cli-plugins/docker-compose , as I moved the downloaded release into /usr/bin/compose - tho docker compose cannot run properly unless the executable is under ~/.docker/cli-plugins/docker-compose . I don't think you need to have this symlink in place, tho I'm writing it here juuuuust incase.

Hope that helps anyone also struggling with that.