Docker容器

docker的安装与删除(centos8)

本文主要是介绍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

这篇关于docker的安装与删除(centos8)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!