how to kill a container in docker code example Example: how to stop a container docker docker stop <ContainerID>