docs: add binary_state.json permission denied known problem #1274
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
possibly also related to issue cypress docker image root user misconfiguration #914Issue
If a custom Docker image is built from
cypress/base
orcypress/browsers
and a Cypress binary is installed (for instance withnpx cypress install
) and the custom image is then run with a non-root user, Cypress will fail to run with an error message:This is due to an open Cypress issue cypress-io/cypress#30684 where Cypress fails to verify the installed Cypress binary if it does not have write access to the Cypress binary directory.
Repro steps
Follow the steps in cypress/base README > Docker build and run, running the generated image with
--user node
for the non-root usernode
:Dockerfile
:Change
Add a new topic to the README > Known problems section, referring to Cypress issue cypress-io/cypress#30684.
Suggest the workarounds:
RUN
commandchmod -R 777 /root/.cache/Cypress
to theDockerfile
, similar to the workaround employed in factory/installScripts/cypress/default.sh ORENV
environment variableCYPRESS_SKIP_VERIFY=true
to theDockerfile
(see Advanced Installation > Environment variables) ORdocker run --env CYPRESS_SKIP_VERIFY=true
commandDockerfiles
Dockerfile.base.workaround_1
:Dockerfile.base.workaround_2
:Verification
Ignore warning:
Option 1
Option 2
Option 3