On Ubuntu 14.04 (Trusty Tahr) I\'m looking for a way to stop a running container and the only information I have is the image name that was used in the Docker run comma
docker stop $(docker ps -a | grep "zalenium") docker rm $(docker ps -a | grep "zalenium")
This should be enough.