Safeguard
Topic

Containers

In-depth guides and analysis on containers from the Safeguard engineering team.

100 articles

Containers

Dockerizing Node.js and PHP Apps: A Practical Guide

Writing a node js dockerfile and learning how to dockerize php application deployments both hinge on the same handful of decisions — base image, layer order, and what you leave out of the final image.

Jun 23, 20255 min read
Containers

Rebuilding Docker Images: When and How

Knowing how to rebuild a Docker image correctly — and when a cached layer is silently serving stale, vulnerable code — matters more than most teams realize until a patch doesn't actually land.

Jun 18, 20256 min read
Containers

Docker Scratch Images: When (and When Not) to Use Them

A docker scratch image starts from nothing — no shell, no package manager, no OS layer — which makes it the smallest possible attack surface, but only for binaries built to run without one.

Jun 17, 20255 min read
Containers

Kubernetes securityContext: A Practical Hardening Guide

The securityContext in Kubernetes is where most pod hardening actually happens. A field-by-field guide to running non-root, dropping capabilities, and read-only roots.

Jun 16, 20255 min read
Containers

How to Dockerize a PHP Application Without Shipping Vulnerabilities

Dockerizing a PHP application is easy; doing it securely takes a few deliberate choices about base images, users, and dependencies. Here is a hardened, production-ready approach.

Jun 15, 20256 min read
Containers

Docker Image Security Scan: How to Scan Images for Vulnerabilities

A Docker image security scan inspects the layers of an image for known-vulnerable packages before you ship it. Here are the tools, commands, and the workflow that keeps scanning useful.

Jun 11, 20256 min read
Containers

Kubernetes runAsUser: How to Run Containers as a Non-Root User

What the Kubernetes runAsUser security context does, how to set it correctly, and the common mistakes that quietly leave pods running as root.

Jun 11, 20255 min read
Containers

Docker Hub Node Images: Choosing and Securing the Right Node Tag

The official Node image on Docker Hub ships in half a dozen flavors, and the tag you pick changes your attack surface far more than most teams realize.

Jun 11, 20256 min read
Containers

Kubernetes SecurityContext, Field by Field

SecurityContext in Kubernetes is where pod and container hardening actually lives — here's what each field controls and which defaults you should never leave in place.

Jun 11, 20255 min read
Containers

Docker Container Security: A Hardening Checklist

Most container breaches trace back to a handful of avoidable mistakes — root users, bloated images, exposed sockets, unscanned dependencies. This checklist closes them, image to runtime.

Jun 10, 20257 min read
Containers

PHP Docker: How to Build a Secure PHP Docker Image

A secure PHP Docker setup starts with a supported base tag, a slim image, a non-root user, and a scanned dependency tree. Here is how to get all four.

Jun 9, 20255 min read
Containers

Docker Node Alpine: When to Use the Slim Image

Node Alpine Docker images cut attack surface and pull times dramatically, but musl libc compatibility gaps mean they're not a drop-in replacement for every Node project.

Jun 5, 20256 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.

Containers (Page 5) — Supply Chain Security Blog | Safeguard