Hacker News new | ask | show | jobs
Efficient Docker build with SSH Docker daemon (blog.crafteo.io)
1 points by pierrebeucher 1207 days ago
1 comments

Working with Docker for 8+ years I've seen many teams struggling with build process optimization - mostly around CI config for efficient cache re-use. I was surprised very little literature mention that a Docker daemon can be configured as a remotely available server, allowing for a de-facto secure remote cache and build engine.

I've been using this pattern for some time in various teams and projects with great results. Coupled with a simple Dockerfile optimization (and BuildKit cache mount when needed), Docker builds are mostly smooth and painless. It also has the advantage of avoiding overcomplex CI config to optimize cache re-use and vendor-specific cache features.

Your feedback and comments are very welcome as I'm relatively new to this "share your knowledge publicly" thing :)