01What is the difference between a Docker image and a container?Beginner
An image is a read-only template: the application, its dependencies and its filesystem, built in layers from a Dockerfile. A container is a running instance of an image, with its own thin writable layer, processes and network.
One image can run as many containers. Deleting a container does not delete the image.
docker build -t shop-api:1.0 . # image
docker run -d -p 8080:8080 shop-api:1.0 # container from that image
docker ps # running containers
docker images # images on this machine