You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start the container via docker compose up --detach
Stop the container via docker compose down --timeout 60 or docker compose stop --timeout 60 Bitwarden or docker stop --time 60 Bitwarden
Expected Result
The container should cleanly stop by SIGTERM before the timeout.
Actual Result
The grace period expires and the container is unclean "stopped" by SIGKILL.
Screenshots or Videos
No response
Additional Context
In the "dev" Bitwarden Unified (Debian based), su-exec (Alpine image) is replaced with sudo to start the supervisor. So entrypoint.sh is still the process with ID 1 and supervisord didn't get the SIGTERM from docker stop.
A simple solution would be to add exec at the beginning of the command: exec sudo -E -u \#$PUID /usr/bin/supervisord
I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
The text was updated successfully, but these errors were encountered:
Steps To Reproduce
docker compose up --detach
docker compose down --timeout 60
ordocker compose stop --timeout 60 Bitwarden
ordocker stop --time 60 Bitwarden
Expected Result
The container should cleanly stop by
SIGTERM
before the timeout.Actual Result
The grace period expires and the container is unclean "stopped" by
SIGKILL
.Screenshots or Videos
No response
Additional Context
In the "dev" Bitwarden Unified (Debian based),
su-exec
(Alpine image) is replaced withsudo
to start the supervisor. So entrypoint.sh is still the process with ID 1 and supervisord didn't get the SIGTERM fromdocker stop
.A simple solution would be to add
exec
at the beginning of the command:exec sudo -E -u \#$PUID /usr/bin/supervisord
"exec sudo" result:
An even better solution would be to use
setpriv
:exec setpriv --reuid=$PUID --regid=$PGID --init-groups /usr/bin/supervisord
"exec setpriv" result:
This way it is no longer necessary to install
sudo
via Dockerfile, sincesetpriv
is already included.Githash Version
6f04298-dirty
Environment Details
Database Image
sqlite:3
Issue-Link
#2480
Issue Tracking Info
The text was updated successfully, but these errors were encountered: