Document Moby vs BuildKit differences
Proposed changes
I documented how Moby engine executes all stages of a multi-stage Dockerfile from the beginning of the Dockerfile up to the target stage, even if target stage does not depend on some intermediate stages. When BuildKit is enabled, this (possible bug) does not happen and only transitive dependency stages of the target stage get executed.
I also documented that BuildKit is not enabled by default on all platforms (it is on macOS, but not on Linux) and that multi-stage builds should always be executed with BuildKit enabled in order to avoid the problem described above.
Related issues
Fixes #12231
Deploy Preview for docsdocker ready!
Built without sensitive environment variables
| Name | Link |
|---|---|
| Latest commit | 06c9675415d922d7c938d7e2bdf89b54bb773a41 |
| Latest deploy log | https://app.netlify.com/sites/docsdocker/deploys/63065fffb8281b00094ca9cf |
| Deploy Preview | https://deploy-preview-15477--docsdocker.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
@craig-osterhout When will this be reviewed and merged?
@andreisilviudragnea Could you rebase the PR?
Deploy Preview for docsdocker ready!
| Name | Link |
|---|---|
| Latest commit | 017cc3389f7ba4ad8b557d39084cbabeb55b4595 |
| Latest deploy log | https://app.netlify.com/sites/docsdocker/deploys/6353e6b993c6d70008987367 |
| Deploy Preview | https://deploy-preview-15477--docsdocker.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
@usha-mandya Done.
Thank you @andreisilviudragnea. One of our team members will take a look and get back to you.