From 85a5301fdb0b9720e6d3fe48b52d306a053433ed Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Wed, 22 May 2024 09:29:34 +0200 Subject: [PATCH] Fix script to allow running as DOCKER=podman --- cloudview.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloudview.sh b/cloudview.sh index 588d059..17d5186 100755 --- a/cloudview.sh +++ b/cloudview.sh @@ -37,6 +37,7 @@ CHECK_VARIABLES+=("${openstack_variables[@]}") name="cloudview$$" container_options=( + --security-opt label=disable --rm # Remove container after running -it # Allow user to interrupt execution --net=host # Use host's DNS @@ -108,5 +109,5 @@ for var in "${CHECK_VARIABLES[@]}" ; do fi done -echo docker run "${container_options[@]}" "${variables[@]}" "${volumes[@]}" "$IMAGE" "${ARGS[@]}" -exec docker run "${container_options[@]}" "${variables[@]}" "${volumes[@]}" "$IMAGE" "${ARGS[@]}" +echo "$DOCKER" run "${container_options[@]}" "${variables[@]}" "${volumes[@]}" "$IMAGE" "${ARGS[@]}" +exec "$DOCKER" run "${container_options[@]}" "${variables[@]}" "${volumes[@]}" "$IMAGE" "${ARGS[@]}"