Linux/Docker/Docker ps format: Difference between revisions

From Wiki
< Linux‎ | Docker
(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
Line 4: Line 4:
mkdir ~/.docker
mkdir ~/.docker
touch ~/.docker/config.json
touch ~/.docker/config.json
<pre>
</pre>


edit config.json
edit config.json

Revision as of 04:25, 13 March 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}}"
}