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=$VERTICALThe 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