一 环境准备
1、虚拟机
2、centos7系统
二 安装过程
使用yum命令进行安装
yum install -y docker
查看已安装的版本
yum list installed | grep docker

查看docker版本

启动docker
service start docker
[root@192 zhengshaopeng]# sudo service docker start
Redirecting to /bin/systemctl start docker.service
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
启动失败查了下是因为内核原因
yum update
本文详细介绍了在CentOS环境下准备虚拟机并安装Docker的过程。包括使用yum命令进行安装,检查已安装版本,以及解决启动失败的问题。对于遇到内核相关启动错误的用户,提供了更新系统的解决方案。
1088

被折叠的 条评论
为什么被折叠?



