Docker Community Forums

Share and learn in the Docker community.

Permission issue inside my container

Hi !

I want to execute a mounted python script inside my container of Splunk image, the script is configured from splunk to run every hour , the problem is that when I run the container , Docker changes the owner of the file, so my script doesn’t run because of permission issue.

can anyone please tell me why this happens and how to solve that ?

Try This
docker exec -it --user-root container_id /bin/bash

1 Like

found the solution, I just had to change the path of my script from /home/splunk to /opt/splunk/