(built by virtual machine vm) all images of docker's latest pull cannot be started
[root@localhost ~]-sharp docker info
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 2
Server Version: 1.13.1
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: false
Native Overlay Diff: false
Logging Driver: json-file
Cgroup Driver: systemd
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Init Binary: /usr/libexec/docker/docker-init-current
containerd version: (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: 290a33602b16ff2d1cc5339bc0297f0e094462ce (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: fec3683b971d9c3ef73f284f176672c44b448662 (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
seccomp
WARNING: You"re not using the default seccomp profile
Profile: /etc/docker/seccomp.json
Kernel Version: 3.10.0-327.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 3
CPUs: 1
Total Memory: 993 MiB
Name: localhost.localdomain
ID: S2MZ:JMP2:UQJZ:25N6:GNCH:HRYC:7TJT:GPSR:TCPX:CZ2H:SK6U:BYQ4
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
http://f2d6cb40.m.daocloud.io/
Live Restore Enabled: false
Registries: docker.io (secure)
this is the information of the native docker info
[root@localhost ~]-sharp docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/tomcat latest 168588387c68 2 weeks ago 463 MB
docker.io/mysql latest 81f094a7e4cc 2 weeks ago 477 MB
[root@localhost ~]-sharp docker run --name mytomcat -d tomcat
46388dee1bd0cb38eae60b2a9640eb6d6a8bd1c1e8c7e72248a0bce9ae179e09
/usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "write parent: broken pipe".
mysql and tomcat image startup is the same error, online search for a long time but did not find the problem.
have you gods encountered such a problem?
can only judge that there is an interrupt when docker cli requests daemon. You can use
journalctl -u docker.service
check the detailed log to find out the specific reason.
add:
see that this issue in runc is very similar to this scene:
https://github.com/opencontai...
issue is suspected to be compatible with selinux
or cgroup
.
it is recommended to uninstall docker and reinstall it as officially recommended:
https://docs.docker.com/insta...
if you are in China, you can use the DaoCloud installation script:
Uninstall the old version of Docker first
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
install the latest version of Docker
curl -sSL https://get.daocloud.io/docker | sh
[root@localhost ~]-sharp journalctl -u docker.service
-- Logs begin at Tue 2019-02-26 08:37:44 EST, end at Tue 2019-02-26 08:41:57 EST. --
Feb 26 08:38:20 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
Feb 26 08:38:24 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:24.917148786-05:00" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not fo
Feb 26 08:38:25 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:25.164995857-05:00" level=info msg="libcontainerd: new containerd process, pid: 2961"
Feb 26 08:38:26 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:26.910863737-05:00" level=warning msg="overlay2: the backing xfs filesystem is formatted without d_type support,
Feb 26 08:38:27 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:27.239902803-05:00" level=warning msg="Docker could not enable SELinux on the host system"
Feb 26 08:38:27 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:27.426915297-05:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Feb 26 08:38:27 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:27.427583726-05:00" level=warning msg="mountpoint for pids not found"
Feb 26 08:38:27 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:27.454335884-05:00" level=info msg="Loading containers: start."
Feb 26 08:38:27 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:27.595986740-05:00" level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: WARNIN
Feb 26 08:38:27 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:27.926397237-05:00" level=info msg="Firewalld running: false"
Feb 26 08:38:28 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:28.295287899-05:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon
Feb 26 08:38:28 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:28.350924297-05:00" level=info msg="Loading containers: done."
Feb 26 08:38:28 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:28.410307129-05:00" level=warning msg="Not using native diff for overlay2, this may cause degraded performance fo
Feb 26 08:38:28 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:28.600553232-05:00" level=info msg="Daemon has completed initialization"
Feb 26 08:38:28 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:28.600611587-05:00" level=info msg="Docker daemon" commit="07f3374/1.13.1" graphdriver=overlay2 version=1.13.1
Feb 26 08:38:28 localhost.localdomain systemd[1]: Started Docker Application Container Engine.
Feb 26 08:38:28 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:38:28.628899328-05:00" level=info msg="API listen on /var/run/docker.sock"
Feb 26 08:40:22 localhost.localdomain systemd[1]: Stopping Docker Application Container Engine...
Feb 26 08:40:22 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:40:22.879903334-05:00" level=info msg="Processing signal 'terminated'"
Feb 26 08:40:22 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:40:22.882799319-05:00" level=info msg="stopping containerd after receiving terminated"
Feb 26 08:40:22 localhost.localdomain dockerd-current[1896]: time="2019-02-26T08:40:22.882953459-05:00" level=fatal msg="containerd: serve grpc" error="accept unix /var/run/docker/libcontainerd/doc
Feb 26 08:40:23 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
Feb 26 08:40:24 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
Feb 26 08:40:24 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:24.148698232-05:00" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not fo
Feb 26 08:40:24 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:24.154100922-05:00" level=info msg="libcontainerd: new containerd process, pid: 3275"
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.167973136-05:00" level=warning msg="overlay2: the backing xfs filesystem is formatted without d_type support,
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.171740231-05:00" level=warning msg="Docker could not enable SELinux on the host system"
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.184307865-05:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.184596671-05:00" level=warning msg="mountpoint for pids not found"
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.184746777-05:00" level=info msg="Loading containers: start."
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.224282729-05:00" level=info msg="Firewalld running: false"
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.297388973-05:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.327499820-05:00" level=info msg="Loading containers: done."
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.328987940-05:00" level=warning msg="Not using native diff for overlay2, this may cause degraded performance fo
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.334170790-05:00" level=info msg="Daemon has completed initialization"
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.334193898-05:00" level=info msg="Docker daemon" commit="07f3374/1.13.1" graphdriver=overlay2 version=1.13.1
Feb 26 08:40:25 localhost.localdomain systemd[1]: Started Docker Application Container Engine.
Feb 26 08:40:25 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:40:25.346048102-05:00" level=info msg="API listen on /var/run/docker.sock"
Feb 26 08:41:57 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:41:57.914664673-05:00" level=error msg="containerd: start container" error="oci runtime error: container_linux.go:24
Feb 26 08:41:57 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:41:57.923428761-05:00" level=error msg="Create container failed with error: oci runtime error: container_linux.go:24
Feb 26 08:41:57 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:41:57.973031493-05:00" level=warning msg="bf6e96d2d9b2ff12f9a69bb69c2b043fdfab9b61bf99cb0174fe702f3c921e5f cleanup:
Feb 26 08:41:57 localhost.localdomain dockerd-current[3270]: time="2019-02-26T08:41:57.973107597-05:00" level=error msg="Handler for POST /v1.26/containers/bf6e96d2d9b2ff12f9a69bb69c2b043fdfab9b61b
sudo yum install-y yum-utils device-mapper-persistent-data lvm2
the thing that runs this instruction configuration is missing