Skip to content

Commit

Permalink
encapsulation++
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Mar 18, 2024
1 parent 5fd664b commit 1c65342
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ podman -v > /dev/null || exit 1
)


if [ "$HOST_UNAME" = Darwin ]; then
ARGS='-p 6000:4646 -p 8000:80 -p 4000:443 -v /sys/fs/cgroup:/sys/fs/cgroup:rw'
else
ARGS='--net=host'
fi


wait


Expand All @@ -56,6 +49,12 @@ wait
# container to `podman run` nomad jobs on the outside/VM, not inside itself
(
SOCK=$(podman info |grep -F podman.sock |rev |cut -f1 -d ' ' |rev)
if [ "$HOST_UNAME" = Darwin ]; then
ARGS='-p 6000:4646 -p 8000:80 -p 4000:443 -v /sys/fs/cgroup:/sys/fs/cgroup:rw'
else
ARGS='--net=host'
fi

set -x
podman run --privileged --cgroupns=host \
$ARGS \
Expand Down

0 comments on commit 1c65342

Please sign in to comment.