I’m guessing most of the people out there still use Intel x86_64 processor. I am writing a blog article on how to install Docker Compose 2 on it.
- Create a directory.
mkdir -p ~/.docker/cli-plugins/
- Download Docker Compose 2 binary for x86_64.
curl -SL https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
- Give the binary file execute permission.
chmod +x ~/.docker/cli-plugins/docker-compose
- Check if the binary has been installed successfully.
docker compose version
- You should an output like the image below.
