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