diff --git a/enter.sh b/enter.sh index bff20d6..45bfb3c 100755 --- a/enter.sh +++ b/enter.sh @@ -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