I installed Docker on RHEL8, and use ‘docker run hello-world’
and something weird happened, the most of time, it creates the same error, but a few times, it successes, and print “Hello from Docker! …”, just like below:
[root@...]# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pull complete
Digest: sha256:80f31da1ac7b312ba29d65080fddf797dd76acfb870e677f390d5acba9741b17
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: waiting for init preliminary setup: read init-p: connection reset by peer: unknown.
ERRO[0002] error waiting for container: context canceled
[root@...]# docker run -p 8000:8000 hello-world
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: can't copy bootstrap data to pipe: write init-p: broken pipe: unknown.
ERRO[0000] error waiting for container: context canceled
... ERRO[0000] * 10 ...
[root@...]# docker run -p 9001:9001 hello-world
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: waiting for init preliminary setup: read init-p: connection reset by peer: unknown.
ERRO[0000] error waiting for container: context canceled
[root@...]# docker run -p 9001:9001 hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
...
more detail data is here
And I am confused now, I don’t know what is wrong and how to resolve it.