How do I stop a running docker container?



  • $ sudo docker stop mycontainer
    

    Where mycontainer is the name of the container or use the id of the container.

    Running a ps after will not show the container running, but a ps with the -a option will show all containers including stopped ones.


Log in to reply
 

© Lightnetics 2024