how to run a docker command code example Example 1: docker run command on container sudo docker exec -it Example 2: start a docker container $ docker start