Find container with its name
Page content
Get docker container id from container name
docker ps -aqf "name=containername"
docker ps -aqf "name=^containername$"
-qfor quiet. output only the ID-afor all. works even if your container is not running-ffor filter.^container name must start with this string$container name must end with this string