docker-robot-framework icon indicating copy to clipboard operation
docker-robot-framework copied to clipboard

Getting issue during Docker Run : "exec: \"run-tests-in-virtual-screen.sh\": executable file not found in $PATH": unknown

Open abirlal opened this issue 4 years ago • 5 comments

First Step: Docker Image created with tag d-rt-fr. Successfully image creation done.

Second Step: docker run -v pwd/reports:/opt/robotframework/reports:Z -v pwd/test:/opt/robotframework/tests:Z -e BROWSER=chrome d-rt-fr:latest

Error found: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: "run-tests-in-virtual-screen.sh": executable file not found in $PATH": unknown.

abirlal avatar Dec 09 '20 08:12 abirlal

Something is not correct with your docker image or your docker image, does the default image work?

UltimateDogg avatar Dec 09 '20 12:12 UltimateDogg

NO Default image is not working. There I am getting error too. [ ERROR ] Opening output file '/opt/robotframework/reports/output.xml' failed: PermissionError: [Errno 13] Permission denied: '/opt/robotframework/reports/output.xml'

abirlal avatar Dec 09 '20 14:12 abirlal

What user are you using? https://github.com/ppodgorsek/docker-robot-framework#security-consideration will talk about the default user and how you can change it.

UltimateDogg avatar Dec 09 '20 15:12 UltimateDogg

In case you would like to avoid changing the user running the instance, you can simply check the permissions of the current folder (pwd) and make sure user 1000:1000 has permissions to write in it and its reports/ subfolder.

ppodgorsek avatar Jan 28 '21 11:01 ppodgorsek

What is the status of this issue? Has it been resolved and can it be closed?

ppodgorsek avatar Mar 02 '21 13:03 ppodgorsek

Closing due to inactivity.

ppodgorsek avatar Sep 25 '22 15:09 ppodgorsek