EasyEnv
Engineering/Courses/Catalog/Docker/Your First Container
Docker
IntermediateLesson 2 of 1325 min · hands-on

Your First Container

Part of the Docker course

You now know, in theory, that an image is a sealed package and a container is what happens when you actually open one. Theory only gets you so far. In this lesson you check real guests into the shared house from the last lesson: you will start, list, stop, and remove real containers. Nothing here writes anything permanent, so there is nothing to be careful about. Break things freely.

The traditional first container to run is called hello-world. It is a tiny image whose only job, once it is opened, is to print a friendly message and then immediately leave. In the house analogy from the last lesson, checking in hello-world is like a guest who walks in the front door, waves at the front desk, says one sentence, and walks straight back out. ...

Want to learn Docker Your First Container in a real environment?

Click below, get a fresh Linux box with Docker ready to go, and work through Your First Container hands-on with an AI tutor that knows your code.

Start this lessonYour First Container

What you'll learn

  • Docker run
  • Hello-world
  • Interactive shell
  • Docker ps
  • Docker stop
  • Docker rm

Read this lesson in your language

All lessons in this course

13 lessons
  1. 1What Is Docker20 min
  2. 2Your First Container25 min
  3. 3Images and the Dockerfile30 min
  4. 4Building Custom Images35 min
  5. 5Container Networking30 min
  6. 6Volumes and Persistence30 min
  7. 7Docker Compose35 min
  8. 8Multi-Stage Builds35 min
  9. 9Environment Variables and Secrets25 min
  10. 10Healthchecks and Restart Policies25 min
  11. 11Image Optimization and Security30 min
  12. 12Registries and Publishing25 min
  13. 13Capstone: Shipping a Stack50 min

Explore other courses

Your First Container - Docker (English) | Engineering Courses