Linux/Docker/Docker ps format: Difference between revisions
(Die Seite wurde neu angelegt: „to avoid line breaks, when running "docker ps": <pre> mkdir ~/.docker touch ~/.docker/config.json <pre> edit config.json <pre> { "psFormat": "table {…“) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
mkdir ~/.docker | mkdir ~/.docker | ||
touch ~/.docker/config.json | touch ~/.docker/config.json | ||
<pre> | </pre> | ||
edit config.json | edit config.json | ||
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}}" }