File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ available options:
3434 --volume vol : specify an additional volume to put into the container
3535 see podman man page how to specify 'vol'. (no path magic is done ;))
3636 --runcmd : this lets you change the program used to start the container
37- if not set explicit it looks for podman, orbstack and finally docker.
37+ if not set explicit it looks for podman or docker.
3838
3939available command:
4040 help : print this help message and exit
@@ -109,14 +109,12 @@ done
109109# lets see what we have as default runcmd:
110110if [ -n " ${RUNCMD} " ] ; then
111111 true
112- elif [ -n $( which podman) ] ; then
112+ elif command -v podman > /dev/null 2>&1 ; then
113113 RUNCMD=' podman'
114- elif [ -n $( which orbstack) ] ; then
115- RUNCMD=' orbstack'
116- elif [ -n $( which docker) ] ; then
114+ elif command -v docker > /dev/null 2>&1 ; then
117115 RUNCMD=' docker'
118116else
119- echo " ERROR: could not find podman/orbstack or docker to start container" >&2
117+ echo " ERROR: could not find podman or docker to start container" >&2
120118 exit 200
121119fi
122120
You can’t perform that action at this time.
0 commit comments