-
-
Notifications
You must be signed in to change notification settings - Fork 270
Description
Describe the bug
A clear and concise description of what the bug is.
When pulling the latest beta images (as of 2023-02-11) on Gitpod, docker doesn't complete and shows an error when extracting a layer.
To Reproduce
Steps to reproduce the behavior:
- Go to Gitpod.
- In the bash terminal, run
docker pull oxsecurity/megalinter:beta
ordocker pull oxsecurity/megalinter-go:beta
(was https://hub.docker.com/layers/oxsecurity/megalinter-go/beta/images/sha256-8fab0a400aa67089841912c597863e78a871c14bb6f1b26d57d947ca2b1c2807?context=explore and https://hub.docker.com/layers/oxsecurity/megalinter/beta/images/sha256-43fb5d5d36b4d623be36ea8c46958ed517e230fe17707093454e317d2edae384?context=explore) at time of bug - See error when extracting a layer that has node_modules.
Expected behavior
A clear and concise description of what you expected to happen.
Docker images can be pulled and run without any errors.
Screenshots
If applicable, add screenshots to help explain your problem.
failed to register layer: ApplyLayer exit status 1 stdout: stderr: lchown /node-deps/node_modules/ast-types-flow/lib/types.js: invalid argument
Additional context
Add any other context about the problem here.
Discovered in #2318
There seems to be a relation to UIDs, lchown, and maybe rootless containers. moby/moby#43576
In the go flavor, the error message was failed to register layer: ApplyLayer exit status 1 stdout: stderr: lchown /node-deps/node_modules/character-parser/LICENSE: invalid argument