1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Docker

Exercise

Adding a CMD

While creating an image for your python pipeline, you had many issues debugging any problems that came up. To be able to debug these easily, you decide to make an image based on the same version of ubuntu that starts python3 by default.

Instructions 1/3

undefined XP
  • 1
    • Add the instruction so that your Docker image starts python3 by default.
  • 2
    • Using the terminal, run the command to build an image called pipeline_debug from the Dockerfile in your current working directory.
  • 3
    • Let's test the image we just made. Using the terminal, enter the command to run the pipeline_debug image.