Skip to content

Instantly share code, notes, and snippets.

@skateman
Created January 29, 2022 14:01
Show Gist options
  • Save skateman/1baf32b2e0577f4c6fee06ea7cbf3d4b to your computer and use it in GitHub Desktop.
Save skateman/1baf32b2e0577f4c6fee06ea7cbf3d4b to your computer and use it in GitHub Desktop.
podman-compose shorthand with support for podman-attach
#!/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