Stopping Docker containers by image name - Ubuntu

后端 未结 16 1409
故里飘歌
故里飘歌 2020-12-12 10:04

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

16条回答
  •  -上瘾入骨i
    2020-12-12 10:32

    You can use the ps command to take a look at the running containers:

    docker ps -a
    

    From there you should see the name of your container along with the container ID that you're looking for. Here's more information about docker ps.

提交回复
热议问题