Introduction to Docker images

A kindRoustaboutImage is aContainer template.

Everything starts with the Docker image.

When you tell Docker to create a container from an image usingdocker run, It will work its magic (creating a file system, initializing dependencies, etc.), and then creating a container.

Picture has been createdFrom aDocker fileusedocker buildCommands, they can be stored locally or published in the Docker registry, for exampleDocker hub, Where you can store public and private images.

If you visithttps://hub.docker.com/You will see a lot of images that you can use freely without having to create your own images.

Usually, these images are official and produced by the development team behind the specific technology.

For example, this is the official Node.js Docker image:https://registry.hub.docker.com/_/node.

We will discuss more about how to use images and containers shortly.


More docker tutorials: