helper image - encountered unknown type ; children may not be fetched
Context
We are building docker images on a CI agent, we have configured the daemon to use Nexus 3.16 as a registry mirror.
Docker version
server engine: 18.09.6
client: 18.09.2
Issue
When the agent is a newly provisioned one, we got the error below:
[internal] helper image for file operations
digest: sha256:e4c43493b1bb2320466c52248e886014710025b273f224bb96a23b8fb7a1d193
name: "[internal] helper image for file operations"
started: ...
completed: ...
duration: 166.431518ms
error: "encountered unknown type ; children may not be fetched"
resolve docker.io/docker/dockerfile-copy:v0.1.9@sha256:e8f159d3f00786604b93c675ee2783f8dc194bb565e61ca5788f6a6e9d304061 0.2s done
But if we rerun the build job, it will pass. subsequent builds also pass.
We tried to find the dockerfile-copy image locally to reproduce the issue but we couldn't find it, so it means its stored/treated in a special way?
We got another team member who has never built this image with buildkit before to run the same script we run on CI on her local machine, and she could reproduce the issue.
Also, if we remove the registry mirror, it works fine.
Could anyone help explain why this is happening?
Thanks
If you pull dockerfile-copy beforehand, then it will work :(
We have encountered the same thing. Thanks for the suggestion @kevinjom .
I do believe this is a bug and it should be fixed. We run periodic cleanup of images. I hope that does not remove the image. I don't want to put a cron job for this as well.
Regards, Eugen
Please try 19.03, which no longer pulls copy helper image
thanks @AkihiroSuda, 19.03 is not release yet right? its ok, we can test with the RC version first maybe.
I am going to close the issue first, if 19.03 still doesn't work, I will reopen the issue.
Thanks.
any workaround can have for docker version 18 , except pull dockerfile-copy image beforehand ?
Docker 18.06 and 18.09 reached EOL, and are not longer maintained; I'd highly recommend upgrading to a currently supported version as those older versions may have unpatched vulnerabilities.
@thaJeztah thanks for the info
@thaJeztah is there a notice board that shows 18.09 reached EOL ?
I think there was a blog post at some point, but as a rule of thumb, releases reach EOL one month after the next "major" (YY.MM) release, so (e.g.) docker 18.03 reached EOL one month after docker 18.06 was released.
There is "some" flexibility (to give people some window to upgrade to the next release), but Docker 18.0x releases (Docker 18.09 and older) won't receive updates anymore (including security updates).