Answers for "execute command on docker container from host"

11

how to bash into docker container

docker exec -it nginx /bin/bash
Posted by: Guest on May-26-2020
0

run host command from docker container

docker run --rm -v $(pwd)/mybashscript.sh:/mybashscript.sh ubuntu bash /mybashscript.sh
Posted by: Guest on December-01-2020

Code answers related to "execute command on docker container from host"

Browse Popular Code Answers by Language