Skip to content

kmilogp/docker-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐳 Docker Workshop

A 1-hour hands-on workshop covering Docker fundamentals for developers.

Topics Covered

  1. docker pull - Fetching images from Docker Hub
  2. docker run - Running containers with options
  3. docker build - Creating custom images with Dockerfiles
  4. CMD vs ENTRYPOINT - Controlling container behavior
  5. docker tag - Versioning your images
  6. docker push - Sharing images with your team

Prerequisites

Before the workshop, participants need:

  1. Docker Desktop installed and running

  2. Docker Hub account - Sign up free

  3. Verify installation:

    docker --version
    docker run hello-world

Running the Presentation

This presentation is built with Slidev.

Quick Start

# Install dependencies
npm install

# Start the presentation
npm run dev

Then open http://localhost:3030 in your browser.

Presenter Mode

Access presenter mode with notes and timer:

Keyboard Shortcuts

Key Action
/ Space Next slide
Previous slide
P Presenter mode
O Slides overview
D Dark/Light mode
F Fullscreen

Workshop Content

The workshop covers the following hands-on exercises:

1. Pull & Run

docker pull nginx:alpine
docker pull alpine:latest
docker run -d -p 8080:80 --name my-nginx nginx:alpine

2. Build Your First Image

Create a simple HTML page and package it in a Docker image:

docker build -t my-site:1.0 .
docker run -d -p 8080:80 my-site:1.0

3. CMD vs ENTRYPOINT

Understand the difference between these Dockerfile instructions with a practical greeter script example.

4. Tag & Push

docker tag my-site:1.0 username/my-site:1.0
docker push username/my-site:1.0

5. Final Project: Team Gallery

Each participant creates a personal profile page, containerizes it, and shares it with the team. By the end, everyone runs 6 containers - one from each team member!

Exporting Slides

# Export as PDF
npm run export

# Build static site
npm run build

Resources

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors