1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Introduction to Docker

Connected

Bài tập

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.

Hướng dẫn 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.