Skip to content

Commit

Permalink
prefer podman for phoebus launch
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Dec 2, 2024
1 parent 19b91c2 commit 0a8d68c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions template/opi/phoebus-launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ elif module load phoebus 2>/dev/null; then
else
echo "No local phoebus install found, using a container"

# prefer docker but use podman if USE_PODMAN is set
if docker version &> /dev/null && [[ -z $USE_PODMAN ]]
then docker=docker; UIDGID=$(id -u):$(id -g)
else docker=podman; UIDGID=0:0
# prefer podman but use docker if USE_DOCKER is set
if podman version &> /dev/null && [[ -z $USE_DOCKER ]]
then docker=podman; UIDGID=0:0
else docker=docker; UIDGID=$(id -u):$(id -g)
fi
echo "Using $docker as container runtime"

Expand Down

0 comments on commit 0a8d68c

Please sign in to comment.