Docker Deep Dive for JavaScript Developers
summary
Explains Docker internals for JavaScript developers: that containers use Linux namespaces and cgroups (not full VMs) and demonstrates a hand-built minimal container image by copying only required libraries to achieve a 79 MB image. Shows a practical development setup using Docker Compose for Node, Postgres and a mail catcher, covers multi-stage builds, why Docker on macOS is slower (VM layer), the PID 1 zombie issue, tradeoffs of exposing the Docker socket versus running Docker-in-Docker, and using cgroups for resource limits and restart behavior.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:10What Docker is
- 7:30Linux processes
- 14:11Shared libraries
- 20:29System calls
- 29:44Chroot basics
- 44:12Namespaces
- 46:17Control groups
- 51:56Docker for JS
- 1:02:41Docker Compose
- 1:10:04Zombie processes
- 1:20:44Q&A
related talks
44mSpeeding Up Deployment of JavaScript and Node.js Applications
20mCreating Production Ready Containers: What Devs Need to Know to Secure Their Containers
22mRapidly Developing Microservices with Node js and Docker
29mHow to Build and Run Node Apps with Docker and Compose
43mMaster production: best practices to build Node.js Docker images
23mDockerizing Nodejs application A dev to prod journey
25mNode.js Meets Docker
30mNode.js in a Kubernetes World
