Signed-off-by: Sage Weil <sage@redhat.com>
image_base="quay.io/ceph-ci/ceph"
+if which podman 2>&1 > /dev/null; then
+ runtime="podman"
+else
+ runtime="docker"
+fi
+
# fsid
if [ -e fsid ] ; then
fsid=`cat fsid`
echo "port $port"
# make sure we have an image
-if ! podman image inspect $image_base:$shortid 2>/dev/null; then
+if ! $runtime image inspect $image_base:$shortid 2>/dev/null; then
echo "building initial $image_base:$shortid image..."
sudo ../src/script/cpatch -t $image_base:$shortid
fi