Skip to content

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]:

  1. Install EPEL release:
    yum install -y epel-release
    
  2. Install Python pip:
    yum install -y python-pip
    
  3. Install Docker Compose:
    pip install docker-compose
    
  4. 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].

  1. 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
    
  2. Apply executable permissions:
    sudo chmod +x /usr/local/bin/docker-compose
    
  3. Verify installation:
    docker-compose --version
    
  4. Migrate labels (if necessary):
    docker-compose migrate-to-labels
    

Sources

  • 600-developer__docker__docker-compose__docker-compose-01.md