This lesson is still being designed and assembled (Pre-Alpha version)

Building Docker Images

Overview

Teaching: 25 min
Exercises: 15 min
Questions
  • How do I build a new Docker image?

  • How do I push a new Docker image to a container registry?

  • How do I delete a Docker image when I no longer need it?

Objectives
  • Build a new Docker image from an existing Dockerfile.

  • Push a newly built image to DockerHub.

Key Points

  • Build a new Docker image using the docker image build command.

  • Push a new Docker image to a container registry using the docker image push command.

  • Remove a Docker image that you are no longer using with the docker image rm command.