Trick to loop/autorefresh docker ps view like top/htop in bash

Open Food Broker picture Open Food Broker · Apr 1, 2017 · Viewed 8.9k times · Source

Is it possible - and if yes, how - to have a self-refreshing view of current Docker containers printed by "docker ps" alike top/htop utilities?

Answer

hek2mgl picture hek2mgl · Apr 1, 2017

Use watch:

watch docker ps

See man watch