Centos7 docker-compose and install docker

Installation Docker
Docker package already included in the default CentOS-Extras software source inside. So you want to install docker, yum only need to run the following command:yum install docker

Start Docker Service

[root@localhost ~] systemctl start docker.service [root@localhost ~] systemctl enable docker.service 

Installation docker-compose
first check before installation whether installed docker-compose python-pip
the terminal input

[root@localhost ~] pip -v

Confirmation is not installed python-pip is performed in this package

[root@localhost ~] yum -y install epel-release
[root@localhost ~] yum -y install python-pip
[root@localhost ~] pip install --upgrade pip
[root@localhost ~] pip install docker-compose --ignore-installed requests 
[root@localhost ~] docker-compose -version 

When there is illustrated edition prompted the installation is complete

 

Guess you like

Origin www.cnblogs.com/7788IT/p/11372722.html