Your DevOps study space

Real explanations. Videos with tests. Fresh exams every time. Keep the streak alive and watch the XP stack up.

Working with Docker · Docker Docs · StackwisePlanDevOps Working with Docker · Docker Docs · StackwiseCodePython Working with Docker · Docker Docs · StackwiseBuildDocker Working with Docker · Docker Docs · StackwiseTestDevOps Working with Docker · Docker Docs · StackwiseReleaseGit Working with Docker · Docker Docs · StackwiseDeployKubernetes Working with Docker · Docker Docs · StackwiseOperateLinux Working with Docker · Docker Docs · StackwiseMonitorDevOps

Pick a topic

Eight tracks, each with docs, a cheat sheet, videos and tests.

How it works

One loop, repeated until it sticks.

Jump back in

Picked up from where you left off.

Free forever

Your DevOps journey starts with one click.

Sign in with Google or GitHub to open every chapter, video, test and challenge. Your progress is saved wherever you learn.

Working with Docker

Day to day, working with Docker comes down to three things: running and inspecting containers, building your own images with a Dockerfile, and wiring several containers together with Compose. This chapter walks through each, in the order you'd meet them on a real project.

Everyday commands

$ docker pull nginx:1.27                  # download an image
$ docker run -d -p 8080:80 --name web nginx:1.27
#   -d  run in the background
#   -p  host port 8080 -> container port 80
$ docker ps                               # running containers (-a = all)
$ docker logs -f web                      # its output, live
$ docker exec -it web sh                  # open a shell inside it
$ docker stop web && docker start web
$ docker rm web                           # delete the container
$ docker images                           # local images
$ docker rmi nginx:1.27                   # delete an image

Building your own image: the Dockerfile

A Dockerfile is the recipe for an image. Each instruction adds a layer:

# Dockerfile for a Node.js app
FROM node:20-alpine          # start from an official base image
WORKDIR /app                 # all following commands run in /app
COPY package*.json ./        # copy dependency list first...
RUN npm ci                   # ...and install (cached until package.json changes)
COPY . .                     # then the rest of the code
ENV NODE_ENV=production
EXPOSE 3000                  # documents the port the app listens on
CMD ["node", "server.js"]    # what runs when a container starts

$ docker build -t demee/app:1.0 .
$ docker run -d -p 3000:3000 demee/app:1.0
$ docker push demee/app:1.0

Docker caches each layer and only rebuilds from the first one that changed. That's why dependency files are copied and installed before the rest of the code: editing your code doesn't trigger a slow reinstall.

Dockerfilethe recipeimagedemee/app:1.0containerrunningcontaineranother copyregistryDocker Hub, GHCRother machineCI, a serverdocker builddocker rundocker pushdocker pull
One image, many containers. The registry is how the same image gets from your laptop to CI and to the server, byte for byte.

Data and configuration

A container's own files disappear when the container is removed. Anything that must survive (a database's data) goes in a volume: -v pgdata:/var/lib/postgresql/data. Settings come in as environment variables: -e DB_HOST=db, so the same image runs in every environment with different config.

Docker Compose

Real apps are several containers: web, database, cache. Docker Compose describes them all in one compose.yaml file and starts them together, on a shared network where they find each other by service name:

services:
  web:
    build: .
    ports: ["3000:3000"]
    environment:
      DB_HOST: db
    depends_on: [db]
  db:
    image: postgres:16
    environment:
      POSTGRES_PASSWORD: example
    volumes: [pgdata:/var/lib/postgresql/data]
volumes:
  pgdata:

$ docker compose up -d     # start everything
$ docker compose down      # stop and remove it all

Questions

Pick an answer. Get it wrong and you can try again right away, no waiting. 10 questions per topic - pick a filter below, then use Recreate questions for a fresh set on that topic.

Fresh questions every time

Exam

A mixed test across the whole site, shuffled so you never know which topic comes next. When you submit, every mistake comes with the reason and a jump to the exact moment in the video that explains it.

30 questions 6 topics 20 minute limit Up to 70 XP
1–4 answer · ←→ move
History

Essay

0 / 200-250 words
Sample answer
History
0:00 / 0:00
Not started

on YouTube
Subscribe

Topic progress

Activity

Achievements

Settings

Your profile and your account.

Profile details

* Required. Saved in this browser until you sign in.

Letters, numbers, dots, dashes and underscores.
0 / 160

Account

Checking…

App

Install Stackwise on your phone or computer. It opens in its own window from your home screen, and the Docs and cheat sheets you've opened keep working without internet.

Only admins can see this

Dashboard

Sign-ups, activity, messages and reviews in one place.

Prove it

Certificates

Pass a topic's test and get a certificate with its own public page you can share or add to LinkedIn. Each test is 10 questions drawn at random and graded on the server; you need 8 right, you have 15 minutes, and you get one try per topic a day.

From first command to production

Linux for DevOps

A path through Linux the way DevOps engineers use it: ten stages, every command explained with its flags, examples, real output and mistakes, the combinations engineers chain together, and incidents worked through step by step. Practise everything in a safe lab folder.

Before the interview

Interview prep

Questions that come up in real DevOps interviews, with the kind of answer that lands. Say yours out loud first, then compare. Each one links to the chapter that goes deeper.

    Private to you

    My notes

    Everything you wrote down while watching and reading, in one place. Saved to your account, never shown to anyone.