docker run linux code example
Example 1: docker run name
docker run --name <container name> -dp <local port>:<container port> <image>
Example 2: docker run command on container
sudo docker exec -it <container name> <command>
Example 3: docker run ubuntu container
docker run -it ubuntu
Example 4: start a docker container
$ docker start <container_id>
Example 5: run host command from docker container
docker run --rm -v $(pwd)/mybashscript.sh:/mybashscript.sh ubuntu bash /mybashscript.sh