HostOnNet Blog

Stopping Docker Container

Looking for Linux Server Admin or WordPress Expert? We can help.

docker ps give you list of running docker containers.

root@hon-vpn:~# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                  NAMES
594c77d77351        nginx               "nginx -g 'daemon ..."   54 seconds ago      Up 51 seconds       0.0.0.0:8000->80/tcp   condescending_cori
25cec84d12ff        nginx               "nginx -g 'daemon ..."   3 minutes ago       Up 3 minutes        80/tcp                 flamboyant_golick
root@hon-vpn:~#

To stop a container, run

docker stop CONTAINER_ID

Example

root@hon-vpn:~# docker stop 594c77d77351 25cec84d12ff
594c77d77351
25cec84d12ff
root@hon-vpn:~# 

Posted in Virtualization

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.