periish/kiss-all

[podman] Error on execute

Opened this issue · 6 comments

I installed podman, but when I try to execute:

podman run -ti docker.io/nginx bash

I'm getting this error:

ERRO[0011] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow): lchown /etc/gshadow: invalid argument
  ApplyLayer exit status 1 stdout:  stderr: there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow): lchown /etc/gshadow: invalid argument
Error: unable to pull docker.io/nginx: Error committing the finished image: error adding layer with blob "sha256:bf59529304463f62efa7179fa1a32718a611528cc4ce9f30c0d1bbc6724ec3fb": ApplyLayer exit status
1 stdout:  stderr: there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow): lchown /etc/gshadow: invalid argument

Do you known whats the problem?

Thanks

I found the problem.

I was with a old version of conmon.
Please can you add a https://github.com/containers/conmon on repo, because is a dependency to run podman.

And if is possible create a this package https://github.com/rootless-containers/slirp4netns too, because it's need to run a rootless container.

Thanks

Alright. I have a few other fixes due for the podman package which I've been putting off, I'll merge them into this one. Thanks!

Made some changes. Hopefully should work now?

...

Are you known what's the problem here?

√ ~ % podman run --rm -it docker.io/nginx
Trying to pull docker.io/nginx...
Getting image source signatures
Copying blob bb79b6b2107f done
Copying blob 1966ea362d23 done
Copying blob 166a2418f7e8 done
Copying blob b5c20b2b484f done
Copying blob 5a9f1c0027a7 done
Copying config c39a868aad done
Writing manifest to image destination
Storing signatures
ERRO[0010] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow): lchown /etc/gshadow: invalid argument
  ApplyLayer exit status 1 stdout:  stderr: there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow): lchown /etc/gshadow: invalid argument
Error: unable to pull docker.io/nginx: Error committing the finished image: error adding layer with blob "sha256:bb79b6b2107fea8e8a47133a660b78e3a546998fcf0427be39ac9a0af4a97e90": ApplyLayer exit status 1 stdout:  stderr: there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow): lchown /etc/gshadow: invalid argument

I think the problem is with not found the newuidmap and newuidmap binaries.
I found on this issue containers/podman#3890

When I run:

√ ~ % podman unshare cat /proc/self/uid_map
         0       1000          1

I've installed the shadow package, now I have this binaries, but the same error