Dockerlab 101 Hello World
Check docker running containers with docker ps
Check size of image with docker images
You can get more details on container with docker inspect <container name>
You can get more details on image with docker inspect <image name>
docker run initialize process to build a container.
we have not given any options in this command.
image name is hello-world (This image is a prime example of using the scratch image effectively. See hello.c in https://github.com/docker-library/hello-world for the source code of the hello binary included in this image.)
docker will check if image is available locally
if image is available locally it will start container using this image
if image is not available locally, it will download it from docker registry (docker hub is default registry) and start container using that image