The official documentation for
docker ps suggests that the
--filter option can be used to “Filter output based on conditions provided”. However I cannot find resources that explain what kind of filters those are / how to write them.
E.g. at least for
docker ps --format=someFormat, it is mentioned that the format is a Go template (I’m not too familiar with how to write those anyway, but that’s my own fault).
My specific use case calls for finding containers with a “healthy” status, but in any case I’d like to know what is the general syntax, DSL, etc. that is to be used, so that I can learn on my own if needed.