Ubuntu 20.04安装Docker
apt-get update && apt-get install -y wget
wget -qO- get.docker.com | bash
查看Docker版本
docker -v
设置开机启动
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/v2.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
精彩内容: