Format 'docker ps' Command Output Nicely

Run the following command in your terminal:

🚀 ~ export VERTICAL="\nID\t{{.ID}}\nImage\t{{.Image}}\nCommand\t{{.Command}}\nCreated\t{{.RunningFor}}\nStatus\t{{.Status}}\nPorts\t{{.Ports}}\nNames\t{{.Names}}\n"

After this, you’ll be able to format your docker ps command output vertically by doing:

🚀 ~ docker ps --format=$VERTICAL

The shell script is available in my repo here: github.com/oorkan/docker_ps_vertical

Many thanks to Arthur Ulfeldt and this course from Linkedin: Learning Docker by Arthur Ulfeldt