command run docker code example
Example 1: docker run command on container
sudo docker exec -it <container name> <command>
Example 2: run host command from docker container
docker run --rm -v $(pwd)/mybashscript.sh:/mybashscript.sh ubuntu bash /mybashscript.sh