Skip to content

v6.20.0 container images errors when pulling #2348

@echoix

Description

@echoix

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:

  1. Go to Gitpod.
  2. In the bash terminal, run docker pull oxsecurity/megalinter:beta or docker 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
  3. 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.
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions