Skip to content

Commit

Permalink
Fix script to allow running as DOCKER=podman
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed May 22, 2024
1 parent 2095cab commit 85a5301
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cloudview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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[@]}"

0 comments on commit 85a5301

Please sign in to comment.