Docker run command code example
Example 1: docker interactive shell
docker exec -it [containerid/name] [shell]
docker exec -it fa80b69 bash
Example 2: how to bash into docker container
docker exec -it nginx /bin/bash
Example 3: docker run name
docker run --name <container name> -dp <local port>:<container port> <image>
Example 4: run docker
docker run -d -p 80:80 docker/getting-started
Example 5: docker command
docker ps
docker run
docker create
dokcer exec
docker volume
docker network
docker rm
docker images
docker rmi
docker build
docker push
docker pull
docker commit
Example 6: docker run command on container
sudo docker exec -it <container name> <command>