Skip to content

安装docker成功,启动容器失败 #3

Description

@litongjava

使用yum -y install docker 命令安装docker后,使用docker run 命令启动镜像,镜像的状态一直是restarting,测试了好多的镜像,都是restarting,但是将操作系统换成CentOS-7.6就好了
启动镜像是docker服务的日志如下

Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.518545793+08:00" level=warning msg="Your kernel does not support cgroup rt period"
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.518559425+08:00" level=warning msg="Your kernel does not support cgroup rt runtime"
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.518886791+08:00" level=info msg="Loading containers: start."
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.564268110+08:00" level=info msg="Firewalld running: false"
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.617425407+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.650312231+08:00" level=info msg="Loading containers: done."
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.672847169+08:00" level=warning msg="Not using native diff for overlay2, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled"
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.679713246+08:00" level=info msg="Daemon has completed initialization"
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.679743201+08:00" level=info msg="Docker daemon" commit="7f2769b/1.13.1" graphdriver=overlay2 version=1.13.1
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:09:52.687493602+08:00" level=info msg="API listen on /var/run/docker.sock"
Sep 13 13:09:52 iZuf6j6id5y6dup93gcestZ systemd[1]: Started Docker Application Container Engine.
Sep 13 13:10:15 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:10:15.402430270+08:00" level=error msg="Handler for POST /v1.26/containers/create returned error: No such image: litongjava/ibotcluster:1.7"
Sep 13 13:11:13 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:11:13.019101870+08:00" level=error msg="Handler for POST /v1.26/containers/create returned error: No such image: litongjava/aiengine:20171020"
Sep 13 13:12:12 iZuf6j6id5y6dup93gcestZ oci-umount[1860]: umounthook <debug>: prestart container_id:6e504e96d4f8 rootfs:/var/lib/docker/overlay2/de6728905b08e1eb84ad901a66c0fdc61723e0ed037e488a2c64b8e7cb2f970b/merged
Sep 13 13:12:13 iZuf6j6id5y6dup93gcestZ dockerd-current[1562]: time="2019-09-13T13:12:13.006790546+08:00" level=warning msg="6e504e96d4f8c46b34d4dbcd7ee915110504ae3a04166a2ffbb3bc65e0aae25b cleanup: failed to unmount secrets: invalid argument"
Sep 13 13:12:13 iZuf6j6id5y6dup93gcestZ oci-umount[1969]: umounthook <debug>: prestart container_id:6e504e96d4f8 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions