Linux/Docker/Docker ps format

From Wiki
< Linux‎ | Docker
Revision as of 04:25, 13 March 2019 by Marcluer (talk | contribs) (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 {…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

to avoid line breaks, when running "docker ps":

mkdir ~/.docker
touch ~/.docker/config.json
<pre>

edit config.json
<pre>
{
        "psFormat": "table {{.Names}}\\t{{.Image}}\\t{{.RunningFor}} ago\\t{{.Status}}\\t{{.Command}}"
}