Skip to content

Instantly share code, notes, and snippets.

@dadatuputi
Created August 18, 2020 17:40
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 dadatuputi/34b090c6a2a8fe998eb8fd1748841fcf to your computer and use it in GitHub Desktop.
Save dadatuputi/34b090c6a2a8fe998eb8fd1748841fcf to your computer and use it in GitHub Desktop.
Generate podman service files from existing containers
#!/bin/bash
podman container list -a --format "{{.Names}}" | while read i; do podman generate systemd -fn --new $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment