On 1/8/20 5:35 AM, bryan.hepworth(a)gmail.com wrote:
Been looking at this one for a good few days, I think I might have the wrong idea of how
it works so I'd like some advice.
I created my container image - bioconda that all works nicely, and I can run it from my
/home directory as follows: -
podman run -v /home/bryan/data:/home/bryan:z -it bioconda
This starts it up and I can create Directories and Files ok within it and they retain the
correct uid and gid's, however some of my other images warn that you are running as
root which I'd like to stop happening. Is it possible to use the userns=keep-uid to do
this? I can't seem to make it work correctly if this is the way I'm interpreting
it to do so.
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io
You are not really running as root, you are running as your UID, but the
processes inside of the container are confused. But if you want to run
with your own UID then running with --keep-id is fine.
You could also pick a user within the container to run as, something like:
podman run --user 1000 -v /home/bryan/data:/home/bryan:z -it bioconda