Filter containers that contain a substring in their name

docker ps

docker ps --filter="name={{name}}"

click the source code to copy install docker ps on any operating system with command-not-found.com