docker和docker-compose的安装教程
docker安装
wget -qO- get.docker.com | bash
检查docker是否安装成功
docker -v
设置docker开机自启动
systemctl enable docker
卸载docker
sudo apt-get purge docker-ce docker-ce-cli containerd.io
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
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是否安装成功
docker-compose --version