Hello, i looking a way to change the default format of podman ps command.
I changed my system from docker to podman, with docker i was using a file with the configuration bellow at "$HOME/.docker/config.json" to have this format by default from "docker ps" command.
I would like to do the same with podman, have any way to do this?
Thx for any help.
{
"psFormat": "table {{.Image}}\\t{{.Ports}}\\t{{.Status}}\\t{{.Names}}"
}
Hi @JerriDilva,
It looks not supported as far as I see the source code of podman. Perhaps the 'podman ps --format' is the only available option to customize the ps output. You could define a shell function to override the behavior of the command if you don't want to type the '--format' option but still need to get output in a custom format.
Regards,
Toshi
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.