webapp-deployment-status-api/docker-wrapper.sh

18 lines
317 B
Bash
Raw Normal View History

#!/bin/bash
set -e
PODMAN_BIN="/usr/bin/podman"
DOCKER_BIN="/usr/local/bin/docker-static"
if [[ "$1" == "manifest" ]]; then
$DOCKER_BIN $*
2024-02-24 00:50:36 +00:00
elif [[ "$1" == "buildx" ]] && [[ "$2" == "imagetools" ]]; then
$DOCKER_BIN $*
elif [[ "$1" == "login" ]]; then
$DOCKER_BIN $*
$PODMAN_BIN $*
else
$PODMAN_BIN $*
fi