Skip to content

Commit

Permalink
Merge pull request #19 from epics-containers/fix-check_docker
Browse files Browse the repository at this point in the history
fix the docker check function in environment.sh
  • Loading branch information
gilesknap authored Aug 27, 2024
2 parents 40dbdee + dcc4dcb commit bcd47f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions template/compose/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ fi
function check_docker {
# return 0 if docker is detected, or 1 otherwise,
# cope with the possibility that podman is aliased to docker
if [[ $(docker version) =~ "Podman" ]]&> /dev/null; then
return 1
if [[ $(docker version) =~ "Docker" ]]&> /dev/null; then
return 0
fi
return 1
}

if check_docker; then
Expand Down

0 comments on commit bcd47f9

Please sign in to comment.