Linux/Docker/Docker ps format: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
} | } | ||
</pre> | </pre> | ||
[[Category:Linux/Docker]] | |||
[[Category:Linux]] | |||
Latest revision as of 21:44, 10 April 2019
to avoid line breaks, when running "docker ps":
mkdir ~/.docker touch ~/.docker/config.json
edit config.json
{
"psFormat": "table {{.Names}}\\t{{.Image}}\\t{{.RunningFor}} ago\\t{{.Status}}\\t{{.Command}}"
}