No permissions to create screenshot directory when using docker image testcafe/testcafe
The simplest solution is creating a screenshots
directory on your Docker host, configuring correct permissions and passing this directory to the container as a volume. You can use the following commands as a reference:
mkdir screenshotschmod a=rwx screenshotsdocker run -it --rm -v ./tests:/tests -v ./screenshots:/screenshots testcafe/testcafe firefox /tests --screenshots /screenshots