Images loaded into Docker's containerd image store are identified by their manifest or index digest, while the legacy graphdriver store uses the config digest. buildx prefers containerimage.config.digest when the Moby exporter returns both digests. Some exporter responses still produce a usable iidfile, but affected builds, such as those with attestations disabled, write a config digest that Docker image commands cannot resolve. Expose the Docker driver's image-store mode as a feature and set prefer-image-digest for containerd-backed Moby exports. Signed-off-by: Paweł Gronowski <git@grono.dev>
14 lines
413 B
Go
14 lines
413 B
Go
package driver
|
|
|
|
type Feature string
|
|
|
|
const OCIExporter Feature = "OCI exporter"
|
|
const DockerExporter Feature = "Docker exporter"
|
|
|
|
const CacheExport Feature = "Cache export"
|
|
const MultiPlatform Feature = "Multi-platform build"
|
|
const DirectPush Feature = "Direct push"
|
|
const PreferImageDigest Feature = "Prefer image digest"
|
|
|
|
const DefaultLoad Feature = "Automatically load images to the Docker Engine image store"
|