Skip to content

Commit

Permalink
Fix docker permission for /run/user/XXXX directory
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Jun 18, 2024
1 parent f57dcf0 commit 9bc829b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ function start_container -d "Start a podman|docker image with gpu support"
eval '$containerprg exec --user root $cid bash -c "chown $user:$user /home/$user"'
eval '$containerprg exec --user root $cid bash -c "chown $user:$user /home/$user/.config"'
eval '$containerprg exec --user root $cid bash -c "chown $user:$user /home/$user/.local"'
eval '$containerprg exec --user root $cid bash -c "chown $user:$user /run/user/$user_id"'
if test $containerprg = "podman"
# TODO: Why this's no longer working?
# podman exec --user root $cid bash -c "usermod -d /home/$user $user"
Expand Down

0 comments on commit 9bc829b

Please sign in to comment.