Установка Docker Compose под Centos
Сначала ставим python-pip:
sudo yum install epel-release sudo yum install -y python-pip sudo pip install --upgrade pip |
Далее ставим Docker Compose, при необходимости обновляем python:
sudo pip install docker-compose sudo yum upgrade python* |
Проверяем:
vi docker-compose.yml my-test: image: hello-world docker-compose up -d docker-compose ps Output of `docker-compose ps` Name Command State Ports ----------------------------------------------- helloworld_my-test_1 /hello Exit 0 docker-compose stop |