how to run a command in docker container from host 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
Example 3: docker how to run existing container
docker start <container-name/ID>