Docker Compose installation methods¶
Docker Compose is a tool for defining and running multi-container Docker applications^[600-developer__docker__docker-compose__docker-compose-01.md]. It allows users to launch multiple images simultaneously using a configuration file typically named docker-compose.yml^[600-developer__docker__docker-compose__docker-compose-01.md].
Installation via yum¶
On systems using the yum package manager, Docker Compose can be installed through the following steps^[600-developer__docker__docker-compose__docker-compose-01.md]:
- Install EPEL release:
yum install -y epel-release - Install Python pip:
yum install -y python-pip - Install Docker Compose:
pip install docker-compose - Verify installation:
docker-compose --version
Installation via Shell script¶
Alternatively, Docker Compose can be installed directly by downloading the binary from the GitHub repository^[600-developer__docker__docker-compose__docker-compose-01.md].
- Download the binary:
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - Apply executable permissions:
sudo chmod +x /usr/local/bin/docker-compose - Verify installation:
docker-compose --version - Migrate labels (if necessary):
docker-compose migrate-to-labels
Related Concepts¶
- [[Docker]]
- DevOps
Sources¶
600-developer__docker__docker-compose__docker-compose-01.md