Here is a part of podman’s system log…
container died
09:46:55 podman: 2022-12-22 09:46:55.877436148 +0100 CET m=+0.220414279 container cleanup e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486 (image=docker.io/vaultwarden/server:latest, name=vaultwarden, org.opencontainers.image.documentation=https://github.com/dani-garcia/vaultwarden/wiki, org.opencontainers.image.licenses=GPL-3.0-only, org.opencontainers.image.revision=638766b346dc0e00c5db7935d21e48354d632335, org.opencontainers.image.source=https://github.com/dani-garcia/vaultwarden, org.opencontainers.image.url=https://hub.docker.com/r/vaultwarden/server, org.opencontainers.image.version=1.26.0, org.opencontainers.image.created=2022-10-14T18:11:03+00:00)
09:46:55 systemd: Stopped e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486.timer - /usr/bin/podman healthcheck run e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486.
09:46:55 podman: 2022-12-22 09:46:55.728369265 +0100 CET m=+0.251779775 container died e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486 (image=docker.io/vaultwarden/server:latest, name=vaultwarden, org.opencontainers.image.documentation=https://github.com/dani-garcia/vaultwarden/wiki, org.opencontainers.image.licenses=GPL-3.0-only, org.opencontainers.image.revision=638766b346dc0e00c5db7935d21e48354d632335, org.opencontainers.image.source=https://github.com/dani-garcia/vaultwarden, org.opencontainers.image.url=https://hub.docker.com/r/vaultwarden/server, org.opencontainers.image.version=1.26.0, org.opencontainers.image.created=2022-10-14T18:11:03+00:00)
09:46:55 systemd: Started podman-39822.scope.
09:46:55 podman: 2022-12-22 09:46:55.471212218 +0100 CET m=+0.204795449 container exec_died e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486 (image=docker.io/vaultwarden/server:latest, name=vaultwarden, org.opencontainers.image.url=https://hub.docker.com/r/vaultwarden/server, org.opencontainers.image.version=1.26.0, org.opencontainers.image.created=2022-10-14T18:11:03+00:00, org.opencontainers.image.documentation=https://github.com/dani-garcia/vaultwarden/wiki, org.opencontainers.image.licenses=GPL-3.0-only, org.opencontainers.image.revision=638766b346dc0e00c5db7935d21e48354d632335, org.opencontainers.image.source=https://github.com/dani-garcia/vaultwarden)
09:46:55 systemd: Started e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486.service - /usr/bin/podman healthcheck run e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486.
09:46:55 podman: 2022-12-22 09:46:55.177349709 +0100 CET m=+0.341326361 container init e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486 (image=docker.io/vaultwarden/server:latest, name=vaultwarden, org.opencontainers.image.source=https://github.com/dani-garcia/vaultwarden, org.opencontainers.image.url=https://hub.docker.com/r/vaultwarden/server, org.opencontainers.image.version=1.26.0, org.opencontainers.image.created=2022-10-14T18:11:03+00:00, org.opencontainers.image.documentation=https://github.com/dani-garcia/vaultwarden/wiki, org.opencontainers.image.licenses=GPL-3.0-only, org.opencontainers.image.revision=638766b346dc0e00c5db7935d21e48354d632335)
09:46:55 systemd: Started e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486.timer - /usr/bin/podman healthcheck run e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486.
09:46:34 podman: vaultwarden
09:46:34 systemd: Stopped e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486.timer - /usr/bin/podman healthcheck run e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486.
09:46:34 podman: 2022-12-22 09:46:34.501029315 +0100 CET m=+0.037833734 container died e27302318a231001b21f1f367ef9f5e31b547972b294652abce5a95359ba4486 (image=docker.io/vaultwarden/server:latest, name=vaultwarden, org.opencontainers.image.source=https://github.com/dani-garcia/vaultwarden, org.opencontainers.image.url=https://hub.docker.com/r/vaultwarden/server, org.opencontainers.image.version=1.26.0, org.opencontainers.image.created=2022-10-14T18:11:03+00:00, org.opencontainers.image.documentation=https://github.com/dani-garcia/vaultwarden/wiki, org.opencontainers.image.licenses=GPL-3.0-only, org.opencontainers.image.revision=638766b346dc0e00c5db7935d21e48354d632335)
09:46:34 systemd: Started podman-39697.scope.
09:46:34 podman: 2022-12-22 09:46:34.352948044 +0100 CET m=+0.144962759 container exec_died
...
I though it could be SELinux-related.
/data volume looks like this:
drwxr-xr-x. 6 florian florian system_u:object_r:container_file_t:s0:c341,c953 4096 22. Dez 10:51 .
drwx--x---+ 63 florian florian unconfined_u:object_r:user_home_dir_t:s0 4096 22. Dez 10:09 ..
drwxr-xr-x. 2 florian florian system_u:object_r:container_file_t:s0:c341,c953 4096 22. Dez 10:12 attachments
-rw-r--r--. 1 florian florian system_u:object_r:container_file_t:s0:c341,c953 196608 22. Dez 10:12 db.sqlite3
-rw-r--r--. 1 florian florian system_u:object_r:container_file_t:s0:c341,c953 32768 22. Dez 10:51 db.sqlite3-shm
-rw-r--r--. 1 florian florian system_u:object_r:container_file_t:s0:c341,c953 0 22. Dez 10:51 db.sqlite3-wal
drwxr-xr-x. 2 florian florian system_u:object_r:container_file_t:s0:c341,c953 4096 22. Dez 10:12 icon_cache
-rw-r--r--. 1 florian florian system_u:object_r:container_file_t:s0:c341,c953 1675 22. Dez 10:12 rsa_key.pem
-rw-r--r--. 1 florian florian system_u:object_r:container_file_t:s0:c341,c953 451 22. Dez 10:12 rsa_key.pub.pem
drwxr-xr-x. 2 florian florian system_u:object_r:container_file_t:s0:c341,c953 4096 22. Dez 10:12 sends
drwxr-xr-x. 2 florian florian system_u:object_r:container_file_t:s0:c341,c953 4096 22. Dez 10:12 tmp
But even after setting setenforce Permissive
, the container quits.
sudo setenforce Permissive
~ podman run -it --name vaultwarden -v /home/florian/vw-data/:/data/:Z -e ROCKET_PORT=8080 -p 8080:8080 vaultwarden/server:latest
/--------------------------------------------------------------------\
| Starting Vaultwarden |
| Version 1.26.0 |
|--------------------------------------------------------------------|
| This is an *unofficial* Bitwarden implementation, DO NOT use the |
| official channels to report bugs/features, regardless of client. |
| Send usage/configuration questions or feature requests to: |
| https://vaultwarden.discourse.group/ |
| Report suspected bugs/issues in the software itself at: |
| https://github.com/dani-garcia/vaultwarden/issues/new |
\--------------------------------------------------------------------/
[INFO] No .env file found.
[2022-12-22 09:48:29.677][start][INFO] Rocket has launched from http://0.0.0.0:8080
[2022-12-22 09:48:45.303][vaultwarden][INFO] Exiting vaultwarden!
[2022-12-22 09:48:45.304][rocket::server][WARN] Received SIGTERM. Shutdown already in progress.
[2022-12-22 09:48:45.304][vaultwarden][INFO] Vaultwarden process exited!