Skip to content

Introduction to Docker Images

A Docker image is a template for a container.

Everything starts from a Docker image.

When you tell Docker to create a container from an image using docker run, it will perform its magic (create the file system, initialize the dependencies, and more) and then the container will be created.

Images are built from a Dockerfile using the docker build command, and they can be stored locally, or published in a Docker registry like Docker Hub, where you can store public and private images.

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

Often times those images are official and made by the development teams behind a specific technology.

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

We'll talk more about how to use images and containers soon.

THE VALLEY OF CODE

THE WEB DEVELOPER's MANUAL

You might be interested in those things I do:

  • Learn to code in THE VALLEY OF CODE, your your web development manual
  • Find a ton of Web Development projects to learn modern tech stacks in practice in THE VALLEY OF CODE PRO
  • I wrote 16 books for beginner software developers, DOWNLOAD THEM NOW
  • Every year I organize a hands-on cohort course coding BOOTCAMP to teach you how to build a complex, modern Web Application in practice (next edition February-March-April-May 2024)
  • Learn how to start a solopreneur business on the Internet with SOLO LAB (next edition in 2024)
  • Find me on X

Related posts that talk about docker: