Review

In this section, you were exposed to a number of concepts:

  • Writing a Dockerfile to build a Docker image.

  • Using a Docker image to launch a container.

    • Using common options for the docker run command.

      • Name containers for convenience with the --name option.

      • Avoid wasting resources with dead containers with --rm option.

      • Work interactively with containers in the terminal with the -it option.

  • Inspecting a container's output with docker logs.

Last updated