I have a docker container that has a shared volume with the host. The volume mounts in the root home folder. In that folder, I have a shell script I want to run once the container is up and running.
I was using this command:
docker exec -i localserver_web_1 sh /root/scripts/define_applications.sh
but I'm getting this response:
sh: 0: Can't open /root/scripts/define_applications.sh
The script is working fine when I run it from inside the container. It says it's in /root/scripts/. I have permissions set at 777. What could I be doing wrong?