Here, https://docs.docker.com/engine/reference/commandline/container_ls/,
there is the documentation for the "container ls" command.
You can use the "filter" option and this is all it says about it:
--filter , -f Filter output based on conditions provided
Where is it explained how it works?