Linux安装docker和docker-compose

删除旧docker

sudo apt-get remove docker docker-engine docker.io containerd runc

安装docker

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

安装docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

你可能感兴趣的:(linux,docker)