zoukankan      html  css  js  c++  java
  • 【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

  • 相关阅读:
    版本回退
    时光机穿梭
    创建版本库
    安装Git
    Git简介
    Nexus私服安装
    eclipse中创建MAVEN-web项目
    AsyncTask的使用
    在子线程中更新UI,只能使用Handler
    使用VideoView播放视频
  • 原文地址:https://www.cnblogs.com/qxlxi/p/12860716.html
Copyright © 2011-2022 走看看