docs
docs copied to clipboard
docker filter for exact name
File: engine/reference/commandline/ps.md
The documentation states the following:
name
The name filter matches on all or part of a container’s name The following filter matches all containers with a name containing the nostalgic_stallman string.
docker ps --filter "name=nostalgic_stallman"
However, there exists no information on how to forcibly match the entire name only.
I only found out from this answer in your forum how to match the entire string and not also sub-strings, namely:
docker ps --filter "name=^nostalgic_stallman$"
This would be a valuable addition in the documentation in my eyes (as the other commenter also noted)