mirror of
https://github.com/games-on-whales/gow.git
synced 2026-10-15 21:02:02 +00:00
[GH-ISSUE #170] Issue with the GOW Docker container when the container restart policy is set to something other than None #53
Labels
No labels
bug
enhancement
enhancement
github_actions
good first issue
help wanted
help wanted
invalid
needs testers
pull-request
question
x11-images
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/gow#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @yousecjoe on GitHub (Feb 11, 2024).
Original GitHub issue: https://github.com/games-on-whales/gow/issues/170
github.com/games-on-whales/gow@f795c69962/env/host-desktop.env (L9)Ln9 sets the environment variable PULSE_SOCKET_HOST=
/run/user/1000/pulse, which causes the path to get created byrootinstead of the user id1000at boot when the GOW container is set to start with the host.Steps to reproduce
Unless Stoppedand start the container./run/user/1000/. The issue will happen at system boot because GOW automatically creates/run/user/1000/pulseowned by root, but it needs to be owned by1000:1000.This issue is not specific to GOW; it happens when any Docker container tries to create a volume in this unique directory
/run/user/{USERID}and has a restart policy other thanNone.For comparison, Wolf uses
- ${PULSE_SOCKET_HOST}:/tmp/pulse/Why
Because Docker starts before a user authenticates, container volume paths can be created and owned by root before it is rightfully created and owned by the user.
What
When the user ID does not own this path, it breaks many Linux systems that rely on the XDG specifications. Audio (Pulse) will stop working, snapd management fails, systemctl management will break, etc.
For further context, I found the issue is the same being seen here in this thread: https://bugs.launchpad.net/ubuntu/+bug/2017496