Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied while running Docker #1090

Open
silvanic opened this issue Dec 10, 2024 · 0 comments
Open

Permission denied while running Docker #1090

silvanic opened this issue Dec 10, 2024 · 0 comments

Comments

@silvanic
Copy link

Describe the bug
I have a bash script that runs other Docker containers without problems. But running the lighthouse like this

docker run --rm \
        --cap-add=SYS_ADMIN \
        --name lighthouse_${HOST} \
        -u $(id -u):$(id -g) \
        -v "${DATA_DIRECTORY}/${HOST}/lighthouse:/home/lhci/reports/.lighthouseci" \
        patrickhulce/lhci-client \
        lhci collect --url="https://${HOST}"

I got this message :
Error: EACCES: permission denied, open '/home/lhci/reports/.lighthouseci/flags-***.json'

Logs/Screenshots
image

Environment (please complete the following information):

  • Windows WSL2 (Ubuntu 22.04)
  • Docker 27.3.1, build ce12230

I've seen other posts with the same problems but I can't find the solution... Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant