scripts/container.sh: support podman on macOS
The default user and group IDs on macOS are different from those used on Linux, so add the expected ones explicitly. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
297cd5bc3f
commit
ecf278d84b
@ -12,7 +12,7 @@ TAG="gluon:${BRANCH:-latest}"
|
||||
if [ "$(command -v podman)" ]
|
||||
then
|
||||
podman build -t "${TAG}" contrib/docker
|
||||
podman run -it --rm --userns=keep-id --volume="$(pwd):/gluon" "${TAG}"
|
||||
podman run -it --rm --userns=keep-id:uid=1000,gid=1000 --volume="$(pwd):/gluon" "${TAG}"
|
||||
elif [ "$(command -v docker)" ]
|
||||
then
|
||||
docker build -t "${TAG}" contrib/docker
|
||||
|
Loading…
Reference in New Issue
Block a user