#!/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] } ]'