cancel
Showing results for 
Search instead for 
Did you mean: 
  • 1,111 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}}"
}

 

 

 

Labels (2)
0 Kudos
1 Reply
tnishiok
Flight Engineer
Flight Engineer
  • 1,056 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.

sc.jpg

Regards,
Toshi

Join the discussion
You must log in to join this conversation.