File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,18 @@ if [ -n "$DOCKER_CMD" ]; then
2727elif command -v podman & > /dev/null; then
2828 echo " Podman is installed"
2929 DOCKER_CMD=" podman"
30+ EXTRA_FLAGS=" --ignore"
3031elif command -v docker & > /dev/null; then
3132 echo " Docker is installed"
3233 DOCKER_CMD=" docker"
34+ EXTRA_FLAGS=" --ignore"
3335else
3436 echo " Neither Docker nor Podman is installed"
3537 exit 1
3638fi
3739
3840
39- ${DOCKER_CMD} volume create ${VOLNAME}
41+ ${DOCKER_CMD} volume create ${EXTRA_FLAGS} ${ VOLNAME}
4042
4143# Delete our created volume if there is an error to prevent issues on retry
4244trap ' ${DOCKER_CMD} volume rm ${VOLNAME}' ERR
5658done
5759
5860# creating socket volume
59- ${DOCKER_CMD} volume create sockdir
61+ ${DOCKER_CMD} volume create ${EXTRA_FLAGS} sockdir
You can’t perform that action at this time.
0 commit comments