Created
March 8, 2024 20:45
-
-
Save white-gecko/c9dd275df7963b3ac842bcbfabb1f0ad to your computer and use it in GitHub Desktop.
A replacement for docker-compose to use podman-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -eq 1 ] && [ "$1" = "kill" ]; then | |
podman-compose kill --all | |
exit 0 | |
fi | |
if [ "$1" = "rm" ]; then | |
podman-compose kill --all | |
if [ "$2" = "-v" ] ; then | |
podman volume rm --all | |
fi | |
exit 0 | |
fi | |
podman-compose $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment