Skip to Content
Skip to content
Tutorials

DevOps Tutorials

Focused DevOps tutorials for diagnosing container, build, and deployment problems without digging through scattered forum threads. Each guide isolates one operational task—such as shrinking an image, verifying a health check, scanning an SBOM with Grype, or reloading Compose services without dropping requests.

Run the minimal Compose or Dockerfile example locally, compare the exact CLI output, and apply the fix to your own stack.

Docker
Pin a Base Image by Digest Level: Advanced

Look up a base image digest, pin it in the FROM line, check the build used it and plan how to update it. After this, your builds are repeatable without missing security fixes.

Docker
Add a HEALTHCHECK That Actually Fails Level: Advanced

Break an app on purpose and compare three health checks, then put the one that works in the Dockerfile. After this, unhealthy means the app is broken, not the check.

Docker
Cap CPU and Memory So One Container Can't Starve the Host Level: Advanced

Set CPU and memory limits, watch them work, change them on a running container and set them in Compose. After this, one busy container cannot take the whole machine.

Docker
Apply and Verify Log Rotation on an Existing Compose Service Level: Advanced

Show why restart leaves old log settings in place, recreate one service with bounded logging, and verify retained messages without changing engine defaults.

Docker
Log In to a Private Registry From CI Level: Advanced

Log in to a password-protected registry the way a CI job should, push an image, log out, and see the GitHub Actions version. After this, CI logins stop leaking tokens.

Docker
Read-Only Root Filesystem With a Writable tmpfs Level: Advanced

Find where an app writes, run it read-only, and give it a tmpfs for scratch files and a volume for data. After this, nothing inside the container can change its own files.

Docker
Zero-Downtime Restart With Compose on One Host Level: Advanced

Deploy a new version with blue and green copies, a proxy reload and a switch script, and prove no request failed. After this, a deployment on one host does not drop users.

Docker
Export an SBOM or Scan Result From a Real Build Level: Advanced

Export an SPDX SBOM from a real build, list its packages and scan it with Grype, without a Docker account.