Skip to content

Instantly share code, notes, and snippets.

@audstanley
Created January 5, 2022 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save audstanley/cc7f0fb1157e7abf4f22d8df0ec5460c to your computer and use it in GitHub Desktop.
Save audstanley/cc7f0fb1157e7abf4f22d8df0ec5460c to your computer and use it in GitHub Desktop.
podman postgres helper for figuring things out
#!/bin/bash
podman stop $(podman ps -a | grep 'postgres' | awk '{print $1}') && podman rm $(podman ps -a | grep 'postgres' | awk '{print $1}') && podman rmi $(podman images | grep 'postgres' | awk '{print $3}') && podman build -t postgres .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment