Docker && Docker-compose install

System: Linux Ubuntu18.04

Docker:Docker and Docker compose

STEP # . 1 : System Tools some
 the sudo APT Update && the sudo APT upgrade
 the sudo APT -Y the install APT-CA-Certificates HTTPS Transport-curl-PROPERTIES- Free Software Common 

# STEP 2 : Certificate Installation GPG 
curl -fsSL HTTP: // mirrors.aliyun .com / Docker-CE / Linux / Ubuntu / GPG | APT the sudo the Add-Key - 

# the Step . 3 : writing software source information 
the Add APT-Repository " the deb [Arch = AMD64] http://mirrors.aliyun.com/ CE-Docker / Linux / Ubuntu $ (lsb_release -cs) the stable " 
# the Step . 4 : update and install Docker- the CE
 the sudo-Y Update && APT the sudo APT -Y the install docker- CE 

# the Step . 5 : Check the installation results 
Docker Version 

# the Step . 6 : installation Composer
 the sudo curl -L HTTPS: // github.com/docker/compose/releases/download/1.16. . 1 / Docker-Compose-`uname -s` -o-`uname -m` / usr / local / bin / Docker-Compose 

# the Step . 7 : permission to modify
 the sudo  the chmod + X / usr / local / bin / docker- Compose 

# STEP . 8 : check the installation results 
Docker -compose --version

 

Guess you like

Origin www.cnblogs.com/kumata/p/12448676.html