docs icon indicating copy to clipboard operation
docs copied to clipboard

docker filter for exact name

Open jpecholt opened this issue 3 years ago • 0 comments

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)

jpecholt avatar Oct 06 '22 15:10 jpecholt