Jean-Philippe Briend
banner
jpbriend.fr
Jean-Philippe Briend
@jpbriend.fr
Staff Software Engineer @ Docker, inc. 🐳
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #30

Modular configs with include!

include:
- path: ./services/database.yml
- path: ./monitoring.yml
- path: ${ENV_CONFIG:-dev.yml}

Keep configurations DRY and reusable.

Learn more: lours.me/posts/compose-tip-030-include/

#Docker #Compose #Configuration #Modular
Docker Compose Tip #30: Compose include for modular configurations
Build modular, reusable Compose configurations with the include directive
lours.me
February 13, 2026 at 9:01 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Quick poll: Is 5 Docker Compose tips/week too much?

Would you prefer:
• Keep 5/week 📅
• Reduce to 3/week 🎯
• Other?

No tips next week, this pause will help me refine the format based on your feedback.

What works for you? 💬

#Docker #Compose
February 12, 2026 at 6:32 PM
Reposted by Jean-Philippe Briend
What happens when you ask a coding agent to break out of its sandbox?

On Hanselminutes, Scott Hanselman puts Docker Sandboxes to the test with Docker COO Mark Cavage. MicroVM isolation, agent autonomy, MCP - and a real escape attempt 🔥

Watch → www.youtube.com/watch?v=sQh-...
Run your AI Agent in a Sandbox, with Docker President Mark Cavage
YouTube video by Scott Hanselman
www.youtube.com
February 12, 2026 at 3:28 PM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #29

Principle of least privilege!

cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE

Drop all capabilities, add only what's needed.

Secure containers properly!

Guide: lours.me/posts/compose-tip-029-container-capabilities/

#Docker #Compose #Security #Linux
Docker Compose Tip #29: Container capabilities and security options
Fine-tune container security with Linux capabilities and security options
lours.me
February 12, 2026 at 8:48 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #28
Convert docker run to Compose!

docker run -p 3000:3000 -v ./data:/app myapp

Becomes:
services:
myapp:
image: myapp
ports: ["3000:3000"]
volumes: ["./data:/app"]

Clean & reusable!
Guide: lours.me/posts/compose-tip-028-docker-run-to-compose/
#Docker #Compose
Docker Compose Tip #28: Converting docker run commands to Compose
Transform complex docker run commands into clean Compose configurations
lours.me
February 11, 2026 at 9:07 AM
Reposted by Jean-Philippe Briend
github.com/docker/cagent is Docker's open source Agent Builder and Runtime.

🐳 Here's a daily tip just for you!

Want to breeze through those Anthropic outages like it’s nothing? ⚠️

cagent supports fallback models for when a provider fails to respond. 🎉
February 9, 2026 at 8:09 PM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #27
Extension fields aren't just for YAML reuse!

x-region: us-east-1
x-kubernetes:
namespace: production
services:
api:
x-owner: api-team

Metadata for tools & platforms!

Guide: lours.me/posts/compose-tip-027-extension-metadata/
#Docker #Kubernetes #Metadata #compose
Docker Compose Tip #27: Extension fields as metadata for tools and platforms
Use extension fields to store metadata for tools, platforms, and deployment environments
lours.me
February 10, 2026 at 9:05 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #26

Keep services running with smart restart policies!

restart: always | unless-stopped | on-failure | no

Configure automatic recovery from crashes and failures.

Guide: lours.me/posts/compose-tip-026-restart-policies/

#Docker #Reliability #DevOps #compose
Docker Compose Tip #26: Using restart policies effectively
Configure automatic container restarts for resilient applications
lours.me
February 9, 2026 at 8:43 AM
Reposted by Jean-Philippe Briend
github.com/docker/cagent is Docker's open source Agent Builder and Runtime.

What's an AI Agent without Skills?

🐳 Here's a daily tip just for you!

Your agent only needs this to support Skills. Whether it's Codex style Skills, Claude style or Agent Skills standard style, we got you covered!
February 7, 2026 at 9:50 AM
Reposted by Jean-Philippe Briend
github.com/docker/cagent is Docker's open source Agent Builder and Runtime.

It's very customisable. Use it to build and share any kind of AI Agents. Not just Coding Agents!

🐳 Here's a daily tip just for you!

An agent can have its own super fast local RAG in less than 10 lines of yaml.
February 6, 2026 at 4:56 PM
Reposted by Jean-Philippe Briend
🤖 New blog post: Running Pi coding agent with Tiny Language Models!

Learn how to set up a minimalist AI coding assistant in @docker.com with Devcontainer + Docker Model Runner.

Perfect for local, privacy-friendly AI coding.

🌍 k33g.org/20260205-PI%...

#TinyLLM #CodingAgent #Docker
k33g.org
k33g.org
February 6, 2026 at 9:01 AM
Reposted by Jean-Philippe Briend
github.com/docker/cagent is Docker's open source Agent Builder and Runtime. It's very customisable. That make's it my coding agent of choice!

🐳 Here's a daily tip just for you!

Use /cost to see the detailed cost of a session.
February 5, 2026 at 4:09 PM
Reposted by Jean-Philippe Briend
For devs asking “how do I run coding agents without breaking my machine?”

Docker Sandboxes are now available.

They use isolated microVMs so agents can install packages, run Docker, and modify configs - without touching your host system.

Read more → https://bit.ly/49QJBH6
February 2, 2026 at 5:00 PM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #20

Debug faster with smart logging!

docker compose logs -f --tail 50 api
docker compose logs --since 5m
docker compose logs | grep -i error

Master log commands: lours.me/posts/compose-tip-020-docker-compose-logs/

#Docker #Debugging #Logs
Docker Compose Tip #20: Using docker compose logs effectively
Master docker compose logs to debug issues quickly and monitor your applications
lours.me
January 30, 2026 at 8:52 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #19

Seamless local development!

compose.yml + compose.override.yml = automatic merging

Production: docker compose -f compose.yml up
Dev: docker compose up (includes override)

Details: lours.me/posts/compose-tip-019-override-files/

#Docker #Development #DevEx
Docker Compose Tip #19: Override files for local development
How to use compose.override.yml for seamless local development configurations
lours.me
January 29, 2026 at 8:50 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #18

Give containers time to clean up!

stop_grace_period: 2m
stop_signal: SIGTERM

Ensures databases close properly, transactions complete, and data saves.

Learn more: lours.me/posts/compose-tip-018-graceful-shutdown/

#Docker #Runtime #Reliability
Docker Compose Tip #18: Graceful shutdown with stop_grace_period
How to configure graceful shutdown timeouts for containers in Docker Compose
lours.me
January 28, 2026 at 9:25 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #15

Zero-downtime deploys with Traefik 🚦
Switch traffic via env vars:
BLUE_ENABLED=false GREEN_ENABLED=true docker compose up -d

Blue/green & instant routing...
Guide 👉 lours.me/posts/compose-tip-015-blue-green-deployments/

#Docker #Traefik #devops
Docker Compose Tip #15: Blue-green deployments with Traefik
How to implement zero-downtime blue-green deployments with Docker Compose and Traefik
lours.me
January 23, 2026 at 9:04 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #14

Stop running containers as root!

services:
app:
user: "1000:1000"

Simple change, huge security improvement. Defense in depth.

How to do it right: lours.me/posts/compose-tip-014-non-root-users/

#Docker #Security #DevSecOps
Docker Compose Tip #14: Running containers as non-root users
How to run containers with non-root users for improved security
lours.me
January 22, 2026 at 8:29 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #13

Connect containers across different projects!

Create external networks to share databases, caches, or APIs between multiple Compose stacks.

Perfect for microservices architecture.

Learn how: lours.me/posts/compose-tip-013-external-networks/

#Docker #Microservices
Docker Compose Tip #13: Using external networks to connect multiple projects
How to connect containers from different Compose projects using external networks
lours.me
January 21, 2026 at 8:26 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #12

One Dockerfile, multiple environment builds!

Use `target` to build specific stages:
• Dev stage: 450MB (with tools)
• Prod stage: 12MB (optimized)

That's 37x smaller! Same Dockerfile.

Details: lours.me/posts/compose-tip-012-target-build-stages/

#Docker #DockerCompose
lours.me
January 20, 2026 at 8:19 AM
Reposted by Jean-Philippe Briend
Si vous voulez toujours des bons conseils Docker & Co, vous pouvez suivre @lours.me, des #pititips sympa au moins par semaine :
🐳 🐙 Docker Compose Tip #12

One Dockerfile, multiple environment builds!

Use `target` to build specific stages:
• Dev stage: 450MB (with tools)
• Prod stage: 12MB (optimized)

That's 37x smaller! Same Dockerfile.

Details: lours.me/posts/compose-tip-012-target-build-stages/

#Docker #DockerCompose
lours.me
January 20, 2026 at 8:30 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #11

Give you dev containers hot reload capabilities
docker compose up --watch

Auto-syncs code changes, rebuild on dep updates & reloads on config modifications.

Read more: lours.me/posts/compose-tip-011-docker-compose-watch/

#Docker #DockerCompose #DevTools
Docker Compose Tip #11: Mastering docker compose up --watch for hot reload
How to use docker compose watch for automatic hot reloading during development
lours.me
January 19, 2026 at 8:53 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #10

Zombie processes? Signals not working?

services:
app:
init: true

Adds tiny init system (Tini) as PID 1. Handles signals properly, reaps zombies.

Essential for Node.js, Python apps!

Details: lours.me/posts/compose-tip-010-init-pid1/

#Docker #BestPractices
Docker Compose Tip #10: Using init for proper PID 1 handling
Why and how to use init in Docker Compose for proper signal handling and zombie reaping
lours.me
January 16, 2026 at 8:42 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #8
DHI images = max security. But no tools for healthchecks!

Solution: Secure sidecar
app-health:
image: dhi.io/curl:8-debian13-dev
network_mode: "service:app"

Shares network → localhost works!
Guide: lours.me/posts/compose-tip-008-dhi-healthcheck/
#Docker #Security
January 14, 2026 at 8:29 AM
Reposted by Jean-Philippe Briend
🐳 🐙 Docker Compose Tip #7

Need to restart just one service? Keep the rest running:

docker compose up -d web

Updates and restarts ONLY the web service. Database, message broker queues stay up, no data loss.

Guide: lours.me/posts/compose-tip-007-restart-single/
#Docker #DockerCompose
Docker Compose Tip #7: Restarting single services without stopping the stack
How to restart individual services in Docker Compose without bringing down your entire stack
lours.me
January 13, 2026 at 8:43 AM