In Chapter 1, Docker Overview, we launched the most basic container of all, the hello-world container, using the following command:
$ docker container run hello-world
As you may recall, this command pulls a 1.84 KB image from the Docker Hub. You can find the Docker Store page for the image at https://store.docker.com/images/hello-world/, and as per the following Dockerfile, it runs an executable called hello:
FROM scratchCOPY hello /CMD ["/hello"]
The hello executable prints the Hello from Docker! text to the Terminal, and then the process exits. As you can see from the full message text in the following Terminal output, the hello binary also lets you know exactly what steps have just occurred:
As the process exits, our container ...