run bash script while running docker exec code example Example: how to bash into docker container docker exec -it nginx /bin/bash