cypress-docker-images icon indicating copy to clipboard operation
cypress-docker-images copied to clipboard

example non-root usage doesn't work on newer images

Open mbalc opened this issue 11 months ago • 2 comments

examples/included-as-non-root-alternative/Dockerfile

the approach works on 3.8.0, but doesn't work on 13.1.0

mbalc avatar Sep 06 '23 13:09 mbalc

crash log
yarn run v1.22.19
$ cypress open --browser chrome --config-file cypress-local.config.js
[STARTED] Task without title.
[FAILED] EACCES: permission denied, open '/root/.cache/Cypress/13.0.0/binary_state.json'
An unexpected error occurred while verifying the Cypress executable.

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Error: EACCES: permission denied, open '/root/.cache/Cypress/13.0.0/binary_state.json'

----------

Platform: linux-x64 (Debian - 11.7)
Cypress Version: 13.0.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

mbalc avatar Sep 06 '23 13:09 mbalc

@mbalc

What environment are you running Docker in and how are you starting the container?

I was experimenting lately in WSL2 and I can run with

docker run -it -v $PWD:/e2e -w /e2e --user node --entrypoint cypress cypress/included:latest run --project . --e2e --browser firefox

I didn't try examples/included-as-non-root-alternative/Dockerfile.

MikeMcC399 avatar Sep 06 '23 13:09 MikeMcC399