start and stop docker code example Example 1: docker start container $ docker start my_container Example 2: how to stop a container docker docker stop <ContainerID>