Make the binary executable by running the following command: sudo chmod +x /usr/local/bin/docker-compose Install Docker Compose from the binary in Docker’s GitHub repositoryĭownload the latest version of Docker Compose by running the following command: sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose Verify the installation by running the following command: docker-compose -version Run the following command to Install Docker Compose: sudo yum install -y docker-compose Here are the steps required for both methods: Install Docker Compose using the repository ![]() Install Docker Compose on CentOS 7 using the repository or from the binary in Docker’s GitHub repositoryĭocker Compose can be installed on CentOS 7 using the repository or by downloading the binary from Docker’s GitHub repository. Verify the installation by running the following command: sudo docker run hello-world ![]() Start and enable Docker by running the following command: sudo systemctl start docker & sudo systemctl enable docker ![]() Install Docker Engine by running the following command: sudo yum install -y docker-ce docker-ce-cli containerd.io Enable the centos-extras repository by running the following command: sudo yum install -y centos-release-extras
0 Comments
Leave a Reply. |