1 安装 Docker#
wget -qO- get.docker.com | bash
1.1 查看 Docker 版本#
docker -v
1.2 设置为开机自启#
systemctl enable docker
2. 安装 Docker-compose#
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version