fix(enter): use host networking
All checks were successful
Container build / container-build (push) Successful in 3m50s
All checks were successful
Container build / container-build (push) Successful in 3m50s
This commit is contained in:
parent
89dbfcb996
commit
80995c560f
4
enter.sh
4
enter.sh
@ -19,6 +19,7 @@ podman_run() {
|
|||||||
# host directories without problems.
|
# host directories without problems.
|
||||||
arg "--security-opt label=disable" # disable labeling so mounts don't need to be labbeled.
|
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 "--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
|
# Mount the wayland socket. Required to get the system
|
||||||
# clipbard (wl-copy) working.
|
# clipbard (wl-copy) working.
|
||||||
@ -82,11 +83,10 @@ if [ "$no_pull" = 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
iid="$(podman image inspect "$image" -f {{.Id}})"
|
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
|
if [ "$(podman image inspect "$image" -f {{.Id}})" != "$iid" ]; then
|
||||||
# When container is stopped and a newer image is available,
|
# When container is stopped and a newer image is available,
|
||||||
# recreate the container instead of starting the existing one.
|
# recreate the container instead of starting the existing one.
|
||||||
echo "container has been updated"
|
|
||||||
podman_delete
|
podman_delete
|
||||||
podman_run
|
podman_run
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user