docker run stdout code example
Example 1: docker it flag
docker container run -it ubuntu bash
Example 2: run host command from docker container
docker run --rm -v $(pwd)/mybashscript.sh:/mybashscript.sh ubuntu bash /mybashscript.sh
docker container run -it ubuntu bash
docker run --rm -v $(pwd)/mybashscript.sh:/mybashscript.sh ubuntu bash /mybashscript.sh