mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Running installation command fails with podman #321
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Venefilyn on GitHub (Jun 14, 2019).
Trying to do the following using podman but getting nowhere. Since podman is defacto standard as a Docker replacement in Fedora 30 I would want to get it to work with it
bw-data looks like this:
@mprasil commented on GitHub (Jun 14, 2019):
Does podman actually run the container with root user inside? Can you maybe try and follow this wiki to start it up? I know it's for docker, but there are generally some guidelines for cases when the user has limited access.
@Venefilyn commented on GitHub (Jun 14, 2019):
You’re correct, from my knowledge Podman only runs containers without root.
Only thing I didn’t do initially with that guide was to change ports. Changing ports didn’t do anything. /bw-data has the right permissions from the guide as I wrote at the end of my last message
@Venefilyn commented on GitHub (Jun 17, 2019):
Kernel does not allow non-priviledged access to ports under 1024, so setting the port 80 as the wiki article said didn't work either when running Podman under non-root. Setting it as 8080 will get you past an error with port binding.
Though that still leaves me with the error I initially reported, I simply cannot get it to work.
@mprasil commented on GitHub (Jun 17, 2019):
Just trying random things here, can you try to run the service with WAL disabled in case the locking fails for whatever reason?
@Venefilyn commented on GitHub (Jun 17, 2019):
No difference
@mprasil commented on GitHub (Jun 17, 2019):
One more thing to check, I've noticed your
bw-datafolder is owner bynobody:spytecand the access mode is set to0775. Make sure the UIDs actually match the1001UID you're using.You should be able to just test the permissions by running:
This should drop you to the shell as user
1001. Then try totouch /data/somefileor something like that to see if you can create files in the data directory.Alternatively you can try to
chmod 0777the folder to rule out permission issue.@Venefilyn commented on GitHub (Jun 17, 2019):
Yeah I did this as well, as you can see in the bottom of the previous comment
I noticed my user was 1000 though so I changed the
podman runaccordingly. Though it reports the same error.Edit: With interactive mode:
@mprasil commented on GitHub (Jun 17, 2019):
I see, I think it's the way podman mounts the mapped directory. Still weird, because it looks like the directory itself is
0777.. Maybe the problem is that there's no user with UID1000in the/etc/passwdfile inside the container?@Venefilyn commented on GitHub (Jun 17, 2019):
I found the issue. I asked in podman mailing list and Matt suspected it was SELinux. After changing context with
:Zit now works as expectedFull script I ran:
@Venefilyn commented on GitHub (Jul 18, 2019):
Would there be any plans of supporting Podman in the documentation?
@mprasil commented on GitHub (Jul 19, 2019):
Absolutely! The wiki is community maintained, if you'd like to create new wiki page for podman with instructions and caveats, I'd really appreciate that. Thanks a lot for coming back to us with the solution.
I think I can close this issue now. Feel free to reopen if anything pops up and if you decide to create wiki page for podman installation, maybe link it from here also, so that's easier to find.