How to i execute the command inside docker container using shell script?

You can try and give your container a static-name ( with the --name option in your docker run command )
then you can use docker exec -ti THE-NAME-YOU-PICKED /bin/bash …

2 Likes