Docker Permission Error: Permission Denied in an integration that uses a file
0
Created On 10/06/20 18:44 PM - Last Modified 07/19/22 23:19 PM
Symptom
In an integration that uses a file such as rasterize, the following Docker permission error may appear:
Script failed to run: Error: [Traceback (most recent call last): File "/tmp/pyrunner/_script_docker_python_loop.py", line 451, in <module> exec(code, sub_globals, sub_globals) File "<string>", line 37, in <module> File "<string>", line 17, in rasterize_email IOError: [Errno 13] Permission denied: 'htmlBody.html' ] (2604) (2603)
Environment
Cortex XSOAR, Docker
Resolution
Verify that one of these conditions is met:
- selinux is disabled in the Docker configuration file
- The Docker configuration file allows access from container to host FS via volumes (for Cortex XSOAR users)
To verify that selinux is enabled, from the log bundle access the docker.log file, and locate the following lines. The selinux part means that it is enabled:
Security Options:
seccomp
Profile: /etc/docker/seccomp.json
Selinux