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

Connected

Exercise

Building your first image

Let's build your first image! We've created a Dockerfile for you, and you can see it in your current working directory using the ls command. You can look at its content using cat Dockerfile or using nano.

Instructions 1/2

undefined XP
  • 1
    • Using the terminal, enter the command to build an image from the Dockerfile in your current working directory.
  • 2
    • Well done! While it's possible to build an image without naming it, we usually want to give our image a name. Using the terminal, enter the command to build an image called my_first_image from the Dockerfile in your current working directory.