Last active
September 28, 2022 11:53
-
-
Save jarryDk/2fffc19828a90bd558db3388aa9c2ad4 to your computer and use it in GitHub Desktop.
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/bash | |
# | |
# Get and array of containers and the network name of the container | |
# | |
dnf list jq -y | |
podman ps --format json | jq '[ .[] | { name: .Names[0], network: .Networks[0] } ]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment