Skip to content

Commit

Permalink
Merge branch 'dockerdev-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
Beerosagos committed Mar 21, 2023
2 parents 4586c8c + dc86eeb commit 873d967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dockerdev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ dockerdev () {
# Use same user/group id as on the host, so that files are not created as root in the
# mounted volume. Only needed for Docker. On rootless podman, the host user maps to the
# container root user.
$RUNTIME exec -it "$CONTAINER_NAME" groupadd -o -g "$(id -g)" dockergroup
$RUNTIME exec -it "$CONTAINER_NAME" useradd -u "$(id -u)" -m -g dockergroup dockeruser
$RUNTIME exec -it "$container_name" groupadd -o -g "$(id -g)" dockergroup
$RUNTIME exec -it "$container_name" useradd -u "$(id -u)" -m -g dockergroup dockeruser
fi

# Call a second time to enter the container.
Expand Down

0 comments on commit 873d967

Please sign in to comment.