What is the elegant way to `watch docker ps --format`? What is the elegant way to `watch docker ps --format`? docker docker

What is the elegant way to `watch docker ps --format`?


Solution

Shortly after posting this question I found solution.

Adding single-quotes '...' solves the problem.

watch 'docker ps --format "table {{.Image}}\t{{.Names}}\t{{.Command}}"'