执行命令:yum install -y yum-utils device-mapper-persistent-data lvm2
执行命令:yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
执行命令:yum list docker-ce --showduplicates | sort -r
执行命令:yum install docker-ce-版本号 例如:yum install docker-ce-17.12.1.ce
执行命令:yum -y install epel-release
执行命令:pip install --upgrade pip
!!!如果升级报错 则执行下列命令:yum remove python-pip
wget https://bootstrap.pypa.io/2.7/get-pip.py
执行命令:pip install docker-compose
如果安装报错: ERROR: Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accuratel
则执行下列命令:sudo pip install --ignore-installed requests
如果安装报错: ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out
则执行下列命令:pip --default-timeout=200 install -U docker-compose
执行命令:wget https://storage.googleapis.com/harbor-releases/release-1.9.0/harbor-offline-installer-v1.9.4.tgz
执行命令:tar xvzf harbor-offline-installer-v1.9.4.tgz
docker-compose down -v vi harbor.yml ##prepare## docker-compose up -d