Linux/Docker/Docker ps format

From Wiki
< Linux‎ | Docker
Revision as of 21:44, 10 April 2019 by Marcluer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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}}"
}