fix(enter): use host networking
All checks were successful
Container build / container-build (push) Successful in 3m50s

This commit is contained in:
Job 2024-10-06 14:53:30 +02:00
parent 89dbfcb996
commit 80995c560f
Signed by: Job79
SSH Key Fingerprint: SHA256:BezbKv3jZaqu7SdNrZM0e42b8nlNwh63zaVj/pUxc7U

View File

@ -19,6 +19,7 @@ podman_run() {
# host directories without problems.
arg "--security-opt label=disable" # disable labeling so mounts don't need to be labbeled.
arg "--userns=keep-id" # required for ~/.ssh which is usually 700.
arg "--net=host" # use host networking
# Mount the wayland socket. Required to get the system
# clipbard (wl-copy) working.
@ -82,11 +83,10 @@ if [ "$no_pull" = 1 ]; then
fi
iid="$(podman image inspect "$image" -f {{.Id}})"
podman pull -q "$image" 1>/dev/null
podman pull "$image"
if [ "$(podman image inspect "$image" -f {{.Id}})" != "$iid" ]; then
# When container is stopped and a newer image is available,
# recreate the container instead of starting the existing one.
echo "container has been updated"
podman_delete
podman_run
else