Getting started with Docker images
The very first Docker image we can run is the hello-world
image. It is often used to test whether Docker is correctly installed and running.
hello-world
After the installation, open the terminal (Command Prompt in Windows) and run the following:
$ docker run hello-world
This command will pull the hello-world
image from the Docker Hub public repository and run the application in it. If you can run it successfully, you will see this output:
Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 70f5ac315c5a: Pull complete Digest: sha256:88ec0acaa3ec199d3b7eaf73588f4518c25 f9d34f58ce9a0df68429c5af48e8d Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "...