JerriDilva

Cadet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023
06:35 PM
- 1,651 Views
Change default podman ps format
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}}"
}
1 Reply
tnishiok

Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2023
07:48 AM
- 1,596 Views
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
Join the discussion
You must log in to join this conversation.