A Practical Guide to Containers for Web Apps
Packaging an application with its dependencies so it runs the same way on every machine.
On this page
The key figures
- Images
- bundle application code and dependencies
- Registries
- store and distribute images
- Base images
- need regular updates for security patches
- Orchestration
- managing many containers requires additional tooling
Why this is worth getting right
Containers remove environment differences between developers and production, but they add their own operational concerns.
Do this, not that
Do
- Pin base image versions
- Rebuild images to pick up security updates
- Keep images small
- Run containers as non-root users
- Scan images for vulnerabilities
Don’t
- Latest tags in production
- Secrets baked into images
- Huge images with build tools included
- Containers running as root
When to bring in help
Our advice Bring in help when moving applications into containers.
Where this comes from
- Microsoft Learn — Containers
- OWASP — Docker Security Cheat Sheet
The figures and practices above come from the sources listed.
Working on something like this?
We take on Web Design & Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.