Skip to content

Intermediate: Building Real Images

Now that you can run containers, it's time to build your own. This track turns you from a Docker user into a Docker author.

You will learn how to:

  • Write a Dockerfile and build your own image
  • Share images by pushing them to a registry
  • Configure containers with environment variables
  • Keep data alive with volumes
  • Let containers talk to each other over a network

Prerequisites

You should have finished the Beginner track, or be comfortable with:

  • Running containers with docker run
  • The difference between an image and a container
  • Basic container lifecycle commands

Tutorials

  • Build a Docker Image

    Write your first Dockerfile and build a custom image.

    Start Tutorial

  • Tag and Push to a Registry

    Share your image by pushing it to Docker Hub.

    Start Tutorial

  • Use Environment Variables

    Move settings out of your code and into the container's environment.

    Start Tutorial

  • Docker Volumes in Practice

    Store data outside a container so it survives being removed.

    Start Tutorial

  • Docker Networking Basics

    Connect containers so they can find and talk to each other.

    Start Tutorial


When you finish, move on to the Advanced track, where you make your images smaller, safer, and production-ready.