TIL: Docker | Show Only Unnamed Volumes

imomaliev

Sardorbek Imomaliev

Posted on February 14, 2022

TIL: Docker | Show Only Unnamed Volumes

Question

How to show only names of volumes?

Answer

Use --format.

$ docker volume ls --format '{{.Name}}'
Enter fullscreen mode Exit fullscreen mode

Links

💖 💪 🙅 🚩
imomaliev
Sardorbek Imomaliev

Posted on February 14, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related