Share feedback
Answers are generated based on the documentation.

Lab: Getting Started with Docker

Start from zero and learn Docker's core building blocks. You'll run pre-built containers, write a Dockerfile to package a Node.js app, build your own image, and see container immutability and isolation in action.

Launch the lab

  1. Start the labspace:

    $ docker compose -f oci://dockersamples/labspace-container-getting-started up -d
    
  2. Open your browser to http://localhost:3030.

What you'll learn

By the end of this Labspace, you will have completed the following:

  • Understand what containers are and how they differ from virtual machines
  • Run containers in the background, inspect their logs and filesystem, and manage their lifecycle
  • Write a Dockerfile to package an application, using layer caching for fast rebuilds
  • Build a custom image with docker build and run it as a container
  • Optionally publish your image to Docker Hub

Modules

#ModuleDescription
1Welcome to DockerIntroduction to containers and running your first hello-world container
2Running ContainersLaunch Nginx, inspect logs and internals, and manage the container lifecycle
3Building Your First ImageWrite a Dockerfile and build a custom image from a Node.js app
4Running Your AppRun your image, explore container isolation, and optionally push to Docker Hub
5Wrap-upSummary of key concepts and next steps