Hands-on DevOps labs

30 labs and 130 graded tasks. Each lab starts a fresh machine just for you, with a terminal in the browser, and checks your work on that machine. The first lab of each skill is free.

Linux

Linux first steps: files, permissions and a real log hunt
Free

Build a project folder, lock down a secrets file, hunt errors across real log files with grep and pipes, and automate a backup with your first script.

beginner45 min4 graded tasks
  1. Build a project folder
  2. Lock down a secrets file
  3. Hunt the errors
  4. Automate a backup with a script
Linux text processing: cut, sort, uniq, awk and sed on real data
Career Prep

Answer business questions from an orders CSV, find the noisiest clients and status codes in a web server access log, and safely rewrite a config file in place with sed.

beginner50 min4 graded tasks
  1. Report on the orders CSV
  2. Who is hitting the web server?
  3. Revenue with awk
  4. Rewrite a config file with sed -i
Linux processes and signals: find, stop, prioritise and background jobs
Career Prep

Track down a runaway CPU hog, stop a process that ignores SIGTERM, lower the priority of a live job without restarting it, and run a long report safely in the background with nohup.

beginner45 min4 graded tasks
  1. Stop the CPU hog
  2. A process that ignores SIGTERM
  3. Lower the priority of a live job
  4. Run a long job safely in the background
Linux users, groups and sudo: onboard a team, offboard an intern
Career Prep

Create a team with its own group, give it a shared folder that keeps the right group on every file, grant one narrow sudo permission through a validated sudoers.d drop-in, and lock a departing account without deleting it.

intermediate50 min4 graded tasks
  1. Onboard the dev team
  2. A shared team folder
  3. Grant one narrow sudo permission
  4. Offboard the intern
Linux networking basics: addresses, ports, HTTP and DNS
Career Prep

Map the machine's addresses, routes and DNS server, unmask a mystery process listening on a port, run and probe your own web server, and learn why /etc/hosts and dig disagree.

beginner45 min4 graded tasks
  1. Network inventory
  2. Unmask the mystery listener
  3. Run and probe your own web server
  4. Give your site a name, and ask real DNS
Linux find, disk usage, links and archives: clean up a full server
Career Prep

Hunt down large and old files with find, clean up safely, work out where the disk space went, switch a release with a symlink, and package a release as tar.gz and zip without the junk.

intermediate55 min4 graded tasks
  1. What is filling the disk?
  2. Clean up safely
  3. Measure, then link
  4. Package release v5

Shell scripting

Shell scripting basics: variables, quoting and decisions
Free

Write four small Bash scripts that store values in variables, quote them safely, capture command output and make decisions with if, [[ ]] and case, just like real monitoring and ops scripts.

beginner45 min4 graded tasks
  1. A greeting script that survives tricky input
  2. A disk usage alert with exit codes
  3. Inspect a path with file tests
  4. Classify files with case
Shell loops and functions: inventories, environments and a reusable library
Career Prep

Generate environment folders with for loops, read a server inventory line by line, and build a small function library with return codes that another script reuses.

beginner50 min4 graded tasks
  1. Generate environment folders with for loops
  2. Read a server inventory line by line
  3. Write a function library
  4. Reuse the library in a report script
Script arguments, getopts and exit codes: build a proper CLI
Career Prep

Handle arguments safely with "$@", build a deploy command with getopts flags and a usage message, harden a fragile script with set -euo pipefail, and return meaningful exit codes from a config validator.

intermediate55 min4 graded tasks
  1. Show the arguments exactly as received
  2. A deploy command with getopts
  3. Harden a fragile script
  4. A config validator with meaningful exit codes
Log analysis with awk and sort: build an incident report
Career Prep

Turn a busy web server access log and an application log into answers: status code counts, the noisiest clients, errors per component and a complete report file, using awk, sort and uniq.

intermediate55 min4 graded tasks
  1. Count responses per status code
  2. Find the noisiest clients
  3. Summarise application errors
  4. Write the incident report file
Scheduling with cron: crontab entries and cron-safe scripts
Career Prep

Write correct crontab schedules for root, avoid the PATH and % traps that make cron jobs fail silently, and build a cleanup script that logs with timestamps and uses flock so two copies never run at once.

intermediate50 min4 graded tasks
  1. Schedule three jobs for root
  2. Avoid the PATH and % traps
  3. A cleanup script for cron
  4. Never run twice at the same time
Production-grade Bash: cleanup traps, idempotency, logging and retries
Career Prep

Write scripts that clean up after themselves with trap and mktemp, can be re-run safely, log with timestamps, and survive a flaky dependency with retries and exponential backoff.

advanced60 min4 graded tasks
  1. Bundle a release with a cleanup trap
  2. A provisioning script you can run twice
  3. A reusable log function
  4. Retry a flaky command with exponential backoff

Git

Git first repository: config, commits, .gitignore and diff
Free

Set up your Git identity, create a repository, make your first commits, keep junk and secrets out with .gitignore, and read history with log and diff.

beginner40 min4 graded tasks
  1. Tell Git who you are
  2. Create a repository and make your first commit
  3. Keep logs and secrets out of Git
  4. Review a change, commit it and read history
Git branching and merging: fast-forward, merge commits and cleanup
Career Prep

Build two features on their own branches, merge one with a fast-forward and one with a real merge commit, then tidy up the branches you no longer need.

beginner40 min4 graded tasks
  1. Work on a feature branch
  2. Merge with a fast-forward
  3. Merge with a merge commit
  4. Delete the merged branches
Git merge conflicts: read the markers, resolve, finish the merge
Career Prep

Two teammates changed the same config line. Start the merge, read the conflict markers, resolve to the agreed content, and settle a second conflict by taking one side.

intermediate40 min3 graded tasks
  1. Start the merge and find the conflict
  2. Resolve to the agreed content and finish the merge
  3. Settle a conflict by taking one side
Git undo: restore, amend, revert, reset and reflog
Career Prep

A repository full of everyday mistakes: discard a stray edit, unstage a secret, fix a bad commit message, revert a broken commit on a shared branch, squash WIP commits and rescue "lost" work with the reflog.

intermediate50 min5 graded tasks
  1. Clean up the working tree
  2. Fix the last commit with amend
  3. Revert a bad commit on a shared branch
  4. Squash WIP commits with reset --soft
  5. Throw work away, then rescue it with the reflog
Git remotes and teamwork: clone, push, pull and rejected pushes
Career Prep

Work against a shared repository like a real team: clone it, push your work, play a teammate in a second clone, recover from a rejected push with pull --rebase, and set up tracking branches.

intermediate50 min5 graded tasks
  1. Clone the shared repo and push a commit
  2. Play a teammate in a second clone
  3. Bring Priya's work into your clone
  4. Recover from a rejected push
  5. Share a branch with tracking
Git history tools: stash, rebase, squash, tags and cherry-pick
Career Prep

Park unfinished work with stash, rebase a feature branch onto main, squash it into one clean commit, tag releases, and cherry-pick a single hotfix without its debug baggage.

advanced55 min5 graded tasks
  1. Park unfinished work with stash
  2. Rebase the feature branch onto main
  3. Squash the feature into one commit and ship it
  4. Tag two releases
  5. Cherry-pick the hotfix and resume your work

Docker

Docker first containers: run, serve, build and clean up
Free

Run nginx in a container, serve your own page from a bind mount, build and run your own image, then clean up like a professional.

beginner45 min4 graded tasks
  1. Run a web server
  2. Serve your own page
  3. Build and run your own image
  4. Clean up
Docker volumes: keep data alive, bind mounts and backups
Career Prep

Give Redis a named volume, prove the data survives deleting the container, move files out with a bind mount, then back up a volume to a tar file and restore it into a fresh one.

beginner45 min5 graded tasks
  1. Run Redis on a named volume
  2. Prove the data survives the container
  3. Get files out with a bind mount
  4. Back up the volume to a tar file
  5. Restore into a fresh volume
Docker networking: private networks, DNS by name and published ports
Career Prep

Build a small private network where containers find each other by name, expose only a gateway to the outside world, join a container to two networks, and clean up a network that is still in use.

beginner50 min5 graded tasks
  1. Create a network and a private API
  2. Reach the API by name
  3. Publish only the gateway
  4. One container, two networks
  5. Remove a network that is still in use
Docker Compose: run a multi-container app from one file
Career Prep

Describe a web app, Redis and an nginx proxy in one compose.yaml, start it with one command, configure it with environment variables, scale it, read its logs and tear it down without losing data.

beginner55 min5 graded tasks
  1. Write compose.yaml and start the app
  2. Configure with environment variables
  3. Scale the web service
  4. Find answers in the logs
  5. Tear down, keep the data
Dockerfile best practices: small, safe and healthy images
Career Prep

Take a static site generator from a careless single-stage build to a production image: .dockerignore, a multi-stage build on pinned tags, a non-root user, a HEALTHCHECK and build arguments.

intermediate55 min4 graded tasks
  1. Keep secrets out of the build context
  2. A multi-stage build on pinned tags
  3. Non-root and healthy
  4. Stamp the version with a build argument
Debugging containers: logs, inspect and exec
Career Prep

Five containers are broken in five different ways: a process that exits at once, a missing environment variable, a permissions error, a port clash and a crash loop. Find each cause with logs, inspect and exec, then fix it.

intermediate60 min5 graded tasks
  1. pay-api stops as soon as it starts
  2. stats exits with an error
  3. notes returns 403 Forbidden
  4. new-web never started
  5. worker is in a crash loop

Kubernetes

Kubernetes first deployment: deploy, expose, scale and fix
Free

On your own single-node cluster: create a namespace, deploy nginx, expose it with a Service, scale it, and debug a broken deployment.

beginner60 min5 graded tasks
  1. Create a namespace
  2. Deploy the app
  3. Expose it with a Service
  4. Scale and label
  5. Fix a broken deployment
Kubernetes ConfigMaps and Secrets: configure an app without rebuilding it
Career Prep

Create ConfigMaps and Secrets from literals and files, feed them to nginx as environment variables and mounted files, then change the config and roll it out.

beginner45 min4 graded tasks
  1. Create a ConfigMap and a Secret
  2. Use the config in a deployment
  3. Mount the Secret as files
  4. Change the config and roll it out
Kubernetes probes and rollouts: zero-downtime releases and fast rollbacks
Career Prep

Add readiness and liveness probes, fix a probe that lies, ship a new image with a safe rolling update, then survive a broken release and roll it back.

intermediate50 min5 graded tasks
  1. Deploy with probes
  2. Fix a probe that lies
  3. Ship version 1.27 safely
  4. Ship a broken release
  5. Roll back
Kubernetes storage: PersistentVolumeClaims and StatefulSets
Career Prep

Claim a volume from the local-path storage class, write data from one pod and read it from another, then run a small StatefulSet where every replica gets its own disk.

intermediate45 min5 graded tasks
  1. Claim a volume
  2. Write data to the volume
  3. Prove the data survives
  4. Run a StatefulSet
  5. Scale down and keep the data
Kubernetes debugging: CrashLoopBackOff, ImagePullBackOff, Pending and empty Services
Career Prep

Four workloads are broken in the triage namespace. Read the signals Kubernetes gives you, find each root cause, and fix it.

intermediate50 min4 graded tasks
  1. Stop the CrashLoopBackOff
  2. Fix the ImagePullBackOff
  3. Schedule the Pending pod
  4. Fix the empty Service
Kubernetes Jobs, CronJobs and resource limits
Career Prep

Run batch work with Jobs and CronJobs, fix a failing migration Job, then fence a team namespace with requests, limits, a LimitRange and a ResourceQuota.

intermediate55 min5 graded tasks
  1. Run a parallel Job
  2. Fix the failing migration Job
  3. Schedule a CronJob and run it now
  4. Fence the team-a namespace
  5. Deploy inside the guardrails
Hands-on DevOps labs · PrepAtlas Tech