Re: [opensuse-factory] Using podman as non root user on tumbleweed
thanks that fixed it actually.
Surprisingly I did not have a pause pid to rm
But following sudo podman system migrate I could use podman as expected.
In the following messages I also read that I may have to logout and re
login for the subid changes to be taken into account and actually I
stopped my workstation before trying to fix my issue with your podman
system migrate.
So I can't confirm what fixed it. But to be remembered that in case of
changes to subid and subgid a logout may be required and also podman
system migrate (although according to documentation this should fix
running containers.
Thanks
Paul
On Fri, Apr 10, 2020 at 2:01 PM Shyukri Shyukriev
Hi,
Can you try with:
rm /run/user/$(id -u)/libpod/pause.pid sudo podman system migrate
I also had hard time figuring out the subid issues...
Cheers ________________________________ From: Paul Gonin
Sent: 10 April 2020 13:28 To: opensuse-factory Subject: [opensuse-factory] Using podman as non root user on tumbleweed Hi !
I am trying to use podman for managing containers on my tumbleweed system (disclaimer the installation is ~5 years old and went through lots of updates over the years... so clearly not a fresh install, and I have not checked if the issue I am facing is happening on a frsh install)
My main motivation for podamn is to avoid using root accounts for managing / building containers.
So as user 'paul' I am trying the following command (copied from registry.opensuse.org) podman pull registry.opensuse.org/opensuse/nginx:latest
And it fails with : Trying to pull registry.opensuse.org/opensuse/nginx:latest... Getting image source signatures Checking if image destination supports signatures Copying blob fc54c6d9e569 done Copying blob 3ee7310b384c done Copying config 311ffab8b7 done Writing manifest to image destination Storing signatures Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:15 for /etc/shadow): lchown /etc/shadow: invalid argument Error: error pulling image "registry.opensuse.org/opensuse/nginx:latest": unable to pull registry.opensuse.org/opensuse/nginx:latest: unable to pull image: Error committing the finished image: error adding layer with blob "sha256:3ee7310b384c142a01b0fa9e8e09b02635f218841a4ee66cce9abd7b10934b12": Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:15 for /etc/shadow): lchown /etc/shadow: invalid argument
I am not sure if it's something missing in my configuration or a 'bug'
I added my user to /etc/subuid and /etc/subgid with sudo usermod --add-subuids 10000-65536 paul sudo usermod --add-subgids 10000-65536 paul
The podman pull command above works fine with a sudo in front... but I want to avoid thant actually.
thanks Paul -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (1)
-
Paul Gonin