标签:war nic key ali mod soft remove install cal
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu bionic stable"
bionic为ubuntu18.04的版本号,ubuntu其他版本自行替换
apt-cache madison docker-ce
sudo apt-get update
sudo apt-get -y install docker-ce
curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
1.25.4为安装版本,其他版本自行替换。如果下载速度很慢,可下载到电脑,再传到服务器上
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
标签:war nic key ali mod soft remove install cal
原文地址:https://www.cnblogs.com/kboat/p/12498154.html