docker的安装与删除(centos8)

安装docker-ce

sudo yum install docker-ce docker-ce-cli containerd.io

查看docker状态

systemctl status docker
# Active:active(running)正常运行
# Active:inactive(dead)停止运行

启动docker

systemctl start docke

停止dokcer

systemctl stop docker

设置开机启动

systemctl enable docker

删除

yum list installed |grep docker

yum -y remove docker.x86_64 
rm -rf /var/lib/docker

 

What do the applications do?

  • containerd.io - daemon to interface with the OS API (in this case, LXC - Linux Containers), essentially decouples Docker from the OS, also provides container services for non-Docker container managers

  • docker-ce - Docker daemon, this is the part that does all the management work, requires the other two on Linux

  • docker-ce-cli - CLI tools to control the daemon, you can install them on their own if you want to control a remote Docker daemon

上一篇:web服务器之Apache语法与使用


下一篇:CentOS8 关闭打开防火墙命令