一、Ubuntu Docker 安装
1.使用官方安装脚本自动安装
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
如果出现报错Command ‘curl’ not found,…
sudo apt install curl
2.检查docker是否安装成功
sudo docker run hello-world
出现Unable to find image ‘hello-world:latest’ locally 不要慌,等待一会
出现下图说明成功
3.卸载docker
删除安装包:
sudo apt-get purge docker-ce
删除镜像、容器、配置文件等内容
sudo rm -rf /var/lib/docker #!!!慎用