Install Docker

#yum upgrade #yum upgrade #yum upgrade #yum upgrade #yum upgrade #yum upgrade #yum upgrade Y y y y y y y y y y y y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y # yum - config manager - add - 'http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # 4, add pack source to the local cache yum Makecache fast # RPM -- the import https://mirrors.aliyun.com/docker-ce/linux/centos/gpg # 5, install the docker yum - y install docker - ce Docker #systemctl restart docker #systemctl restart docker = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = add domestic source: /etc/docker/daemon.json # vim /etc/docker/daemon.json {"registry-mirrors": [" https://pee6w651.mirror.aliyuncs.com "]} Docker official in China: https://registry.docker-cn.com netease: China university of science and technology: http://hub-mirror.c.163.com https://docker.mirrors.ustc.edu.cn ali cloud: https://pee6w651.mirror.aliyuncs.com # systemctl restart docker. ServiceCopy the code

Docker-compose install docker-compose

Docker Compose project Docker Compose project is the official open source project of Docker, responsible for the implementation of Docker container cluster rapid choreography. Two important concepts in Docker Compose:

**** service: an application container that can actually run multiple instances of the same image.

Project: A complete business unit consisting of a set of associated application containers.

A project can be composed of multiple services associated (containers) and managed using docker-comemage.yml.

Method one:

1, download package # curl -l https://github.com/docker/compose/releases/download/1.25.5/docker-compose- ` ` uname - s - ` uname -m ` > / usr/local/bin/docker - compose # 2, add executable permissions chmod + x/usr/local/bin/docker - compose # 3, check the installation docker - compose - vCopy the code

Method 2:

#yum install epel-release #yum install epel-release #yum install epel-release #yum install epel-release #yum install docker-compose #yum install docker-compose #yum install docker-compose #yum install docker-compose #yum install docker-compose #yum install docker-compose #yum install docker-compose #yum install docker-compose Check to install # docker-comement-versionCopy the code