-
Notifications
You must be signed in to change notification settings - Fork 3.6k
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[QUESTION] Chromium versions are mismatched in docker, leading to launch failures #3122
Comments
@hinzed1127 We're half-way through finalizing our docker story. With the 1.3 release, we will start versioning our docker images. So if you use Note though that you'll have to pin your playwright version in
Can you clarify this? This sounds like something unexpected to me. |
@aslushnikov Thanks for clarifying! I'll keep an eye out for the version updates, that should be much easier to keep sync. As far as the second part, I'm seeing permissions issues when trying to install playwright in docker when running as
Strangely, I'm only seeing this error when attempting to install USER root
RUN npm install
USER pwuser |
@hinzed1127 Could it be due to the COPY --chown=pwuser . /src/project |
Hi @isudilovskiy – docker images are now versioned. For example, you can use I'll close this issue since it's stale. Please feel free to open a new issue if we're missing anything! |
Context:
I was getting a browser launch failure when trying to run within a Docker container.
The displayed error said
Error: Failed to launch browser: Error: spawn /home/pwuser/.cache/ms-playwright/chromium-782078/chrome-linux/chrome ENOENT
Taking a closer look, I found that
chromium-790602
was the version in my/home/pwuser/.cach/ms-playwright/
directory#3087 led me to try modifying my dockerfile to this, using the
dev
tag instead ofbionic
:and updating my
package.json
dependencies to useplaywright@next
instead of"^1.2.0"
:for some reason npm install was only working with the root user for
playwright@next
.Question
Is there a way to make chromium versions match using the more stable releases? Specifically, I'd like to just use
FROM mcr.microsoft.com/playwright:dev
andplaywright@latest
, but I was not having any success figuring that out.The text was updated successfully, but these errors were encountered: