Stopping Docker containers by image name – Ubuntu

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 command.

Is there a command to find all the matching running containers that match that image name and stop them?

20 Answers
20

Leave a Comment