OS | Shell |
---|---|
Ubuntu Server 22.04 Jammy | Bash |
curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh
docker-compose is now installed along with docker engine, and becomes docker compose
.
However docker-compose can still be installed as a stand-alone binary using the method below:
source
2.5.0
could be replaced with another valid version number (eg. a more recent version).
# sudo curl -L "https://github.com/docker/compose/releases/download/2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# sudo chmod +x /usr/local/bin/docker-compose
source
v2.5.0
may be replaced with another valid version number of Docker Compose (eg. a more recent version).
# sudo curl \
# -L https://raw.githubusercontent.com/docker/compose/v2.5.0/contrib/completion/bash/docker-compose \
# -o /etc/bash_completion.d/docker-compose