Skip to content

Commit

Permalink
fix perms on docker.sock
Browse files Browse the repository at this point in the history
Signed-off-by: Bassam Tabbara <[email protected]>
  • Loading branch information
bassam committed Aug 3, 2018
1 parent 9a6c9d6 commit 3741254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/cross/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ useradd -o -m -g $BUILDER_GID -u $BUILDER_UID $BUILDER_USER 2> /dev/null
echo "$BUILDER_USER ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
export HOME=/home/${BUILDER_USER}
echo "127.0.0.1 $(cat /etc/hostname)" >> /etc/hosts
[[ -S /var/run/docker.sock ]] && chown $BUILDER_UID:$BUILDER_GID /var/run/docker.sock
[[ -S /var/run/docker.sock ]] && chmod 666 /var/run/docker.sock
chown -R $BUILDER_UID:$BUILDER_GID $HOME
exec chpst -u :$BUILDER_UID:$BUILDER_GID ${ARGS}

0 comments on commit 3741254

Please sign in to comment.