Created
January 29, 2022 14:01
-
-
Save skateman/1baf32b2e0577f4c6fee06ea7cbf3d4b to your computer and use it in GitHub Desktop.
podman-compose shorthand with support for podman-attach
This file contains 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/bash | |
case $1 in | |
attach) | |
podman attach $(podman-compose ps | grep _$2_ | cut -d " " -f 1) | |
;; | |
*) | |
podman-compose $@ | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment