Skip to content

Instantly share code, notes, and snippets.

@travishen
Created August 2, 2022 15:42
Show Gist options
  • Save travishen/f443db9c121ef7e4820e725254987c07 to your computer and use it in GitHub Desktop.
Save travishen/f443db9c121ef7e4820e725254987c07 to your computer and use it in GitHub Desktop.
buildx vs build
指令 儲存 能否並行
docker build 基於 containerd 的原始 content,透過 Dockerfile 定義去操作 content layer by layer,無法並行建構
docker buildx build 基於 containerd 的 content 抽象層 snapshot,透過一個後端服務 (LLB) 來操作 snapshot,得益於 snapshot 的特性,可以拿來建構更複雜更有彈性的依賴結構 資料結構是 DAG,相同 parent 的 node 可以並行建構
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment