【docker】Docker run -it centos FATAL:Kernel too old

1.问题出现

使用docker pull centos 下载镜像文件。在使用docker run -it centos 启动失败。

[root@localhost ~]# docker run -it centos 
FATAL: kernel too old

说内核过旧。

2.问题分析

一般用docker pull centos 不添加参数 默认就是最新的版本,因此打算看看是不是版本太高。

官网显示的最新版是8   https://docs.docker.com/

3.问题解决

[root@localhost ~]# docker pull centos:6.8
6.8: Pulling from centos
3690474eb5b4: Pull complete 
24cb4957fdbf: Pull complete 
2e9485c70cb7: Pull complete 
efa3cf7ee1f9: Pull complete 
Digest: sha256:aed6c10a6fb54831816a9cdacd1a82773999f66f5f41bbdd1395ac3166704c85
Status: Downloaded newer image for centos:6.8
[root@localhost ~]# docker images 
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
tomcat              latest              2f5f33207762        10 days ago         528.6 MB
centos              latest              495a24dc98e8        7 weeks ago         237.1 MB
centos              6.8                 efa3cf7ee1f9        11 months ago       194.5 MB
hello-world         latest              9f5834b25059        14 months ago       1.84 kB
[root@localhost ~]# docker run -it centos:6.8 

查看可以看出使用centos 6.8 就可以成功。

参考资料

https://t.codebug.vip/questions-1376912.htm

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qxlxi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值