install Docker

  sudo yum install -y yum-utils device-mapper-persistent-data lvm2
  sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
  sudo yum install docker-ce
  sudo systemctl enable docker.service
  sudo systemctl start docker.service

2换docker-compose源下载. https://my.oschina.net/u/1440971/blog/3039640

curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose


Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐