Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Docker Is Weird – What That Means for AI‑Heavy DevOps Workflows

Description and use

Docker’s updated ignore logic enables precise build context control, reducing image size and enhancing AI workload security.

Problem

Docker’s new ignore logic now drops files matching both .dockerignore and .gitignore, exposing hidden dependencies and risking accidental inclusion of large source files in AI workloads.

Outcome

Implementing explicit .dockerignore and CI checks reduced image size, cut pull times by ~30 % on GKE, and prevented accidental credential leaks.

Workflow

  • Audit ignore files with a build context test to list files sent to the daemon
  • Create a dedicated .dockerignore listing everything that should never be in an image
  • Keep .gitignore for source‑control only and rely on Docker to drop duplicates
  • Verify image size locally using BuildKit and inspect layer history
  • Automate the context audit in CI to fail builds that ship unintended files

Evidence

Docker now ignores files that match both .dockerignore and .gitignore when you run docker build

Source

Many teams rely on a single .gitignore and assume Docker will respect it – that’s no longer safe

Source

The payoff is immediate: our model‑serving pods now pull 30 % faster on GKE

Source

  • Record date: 2026-10-23T10:26:04.937Z