[
{
"Id": "sha256:5a77f21250176bf210ebf363346a339aa9df70e17c4fc5519b354772ab3ad226",
"RepoTags": [
"b:latest"
],
"RepoDigests": [],
"Parent": "",
"Comment": "",
"Created": "0001-01-01T00:00:00Z",
"Container": "",
"ContainerConfig": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "/",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"c": "E",
"d": "E",
"e": "E"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 0,
"VirtualSize": 0,
"GraphDriver": {
"Data": null,
"Name": "overlay2"
},
"RootFS": {
"Type": "layers"
},
"Metadata": {
"LastTagTime": "0001-01-01T00:00:00Z"
}
}
]
Running docker buildx bake --print on docker-compose.yml
Gives
The labels values are mixed up.
With simple Dockerfile of
FROM scratchyou get similar results in the images using default docker builder:$ docker image inspect a
[ { "Id": "sha256:05c62be58f310cc2e2937be5c75be69ce11642b45fa344bf67f6d7012e9befcc", "RepoTags": [ "a:latest" ], "RepoDigests": [], "Parent": "", "Comment": "", "Created": "0001-01-01T00:00:00Z", "Container": "", "ContainerConfig": { "Hostname": "", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": null, "Cmd": null, "Image": "", "Volumes": null, "WorkingDir": "", "Entrypoint": null, "OnBuild": null, "Labels": null }, "DockerVersion": "", "Author": "", "Config": { "Hostname": "", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ], "Cmd": null, "Image": "", "Volumes": null, "WorkingDir": "/", "Entrypoint": null, "OnBuild": null, "Labels": { "a": "B", "b": "B" } }, "Architecture": "amd64", "Os": "linux", "Size": 0, "VirtualSize": 0, "GraphDriver": { "Data": null, "Name": "overlay2" }, "RootFS": { "Type": "layers" }, "Metadata": { "LastTagTime": "0001-01-01T00:00:00Z" } } ]$ docker image inspect b
[ { "Id": "sha256:5a77f21250176bf210ebf363346a339aa9df70e17c4fc5519b354772ab3ad226", "RepoTags": [ "b:latest" ], "RepoDigests": [], "Parent": "", "Comment": "", "Created": "0001-01-01T00:00:00Z", "Container": "", "ContainerConfig": { "Hostname": "", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": null, "Cmd": null, "Image": "", "Volumes": null, "WorkingDir": "", "Entrypoint": null, "OnBuild": null, "Labels": null }, "DockerVersion": "", "Author": "", "Config": { "Hostname": "", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ], "Cmd": null, "Image": "", "Volumes": null, "WorkingDir": "/", "Entrypoint": null, "OnBuild": null, "Labels": { "c": "E", "d": "E", "e": "E" } }, "Architecture": "amd64", "Os": "linux", "Size": 0, "VirtualSize": 0, "GraphDriver": { "Data": null, "Name": "overlay2" }, "RootFS": { "Type": "layers" }, "Metadata": { "LastTagTime": "0001-01-01T00:00:00Z" } } ]$ dpkg -s docker-buildx-plugin