What happens when you run docker run hello-world
Select an icon to see what it is.
Step 5 of 5
The container prints and exits
The /hello program writes its message to stdout, which dockerd streams back to the CLI. It then exits with code 0. The container is stopped but still exists until you remove it.
$ docker ps -a PrevNext
Container stdout
Hello from Docker!This message shows that your installation appears to be working correctly.
Try it yourself
Run it on any Docker host and compare with the steps above.
$ docker run hello-world$ docker ps -a$ docker rm $(docker ps -aq --filter ancestor=hello-world)