profile
viewpoint

Ask questionsImage id shown as missing with docker history

The layers generated by buildkit don't play nice with the docker history command and show <missing> instead of the layer id for IMAGE

moby/buildkit

Answer questions daveisfera

I'm not doing a docker pull. I'm doing a docker build myimage1 and docker build myimage2 that have the first few layers with the same commands because it's common code that's used by both of those images/services. Then I run a docker history on both to verify that the layers that should be shared are shared.

useful!

Related questions

RUN --mount=type=cache causes the whole build context to be loaded in hot 2
Documentation claims that --mount works with 18.06 hot 1
rootless image didn't work on OKD (OpenShift) 3.11 hot 1
php build fails when cache is enabled hot 1
Documentation claims that --mount works with 18.06 hot 1
Cannot build from local image with buildctl (OCI Worker) hot 1
Attempt to mount an overlay layer that is already in-use hot 1
helper image - encountered unknown type ; children may not be fetched hot 1
Cannot build from local image with buildctl (OCI Worker) hot 1
rootless image didn't work on OKD (OpenShift) 3.11 hot 1
Cannot build from local image with buildctl (OCI Worker) hot 1
ssh agent only forwarded from keys on Windows hot 1
Documentation claims that --mount works with 18.06 hot 1
Github User Rank List