Open vladox opened 3 years ago
Hi @vladox 👋
Thanks for the issue. 👍
Please give the entire command you launched to get the error.
FYI, if you only do a docker container run -it --rm --security-opt seccomp=$(pwd)/chrome.json zenika/alpine-chrome
it will launch a chrome and close it.
You have to give further arguments to do something in headless with this image.
If you are getting this error locally and you are using apple silicon, choose this in docker desktop settings: "Use Rosetta for x86/amd64 emulation on Apple Silicon"
Thank you @ariv803 this worked flawlessly for me after hours and hours of head-scratching and scouring the internet
Describe the bug running the docker image as follows throw several errors:
[0502/080543.126186:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory. [0502/080543.178845:ERROR:vaapi_wrapper.cc(573)] Could not get a valid VA display
To Reproduce Steps to reproduce the behavior:
docker image inspect --format='{{index .RepoDigests 0}}' zenika/alpine-chrome
zenika/alpine-chrome@sha256:7e3b38744596dacbd8d37491a206ab6fce1eb8bcbbff4b8314af92b154638887docker container run -it --rm --security-opt seccomp=$(pwd)/chrome.json zenika/alpine-chrome
[0502/080543.126186:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory. [0502/080543.178845:ERROR:vaapi_wrapper.cc(573)] Could not get a valid VA display
What is the expected behavior? Run without displaying errors
What is the actual behavior?
Errors are shown in the output when running it
Possible solution
Logs If applicable, add logs to help explain your problem.
Versions
docker container run -it --rm --entrypoint "" zenika/alpine-chrome chromium-browser --version
docker image inspect --format='{{index .RepoDigests 0}}' zenika/alpine-chrome
docker version
Additional context Add any other context about the problem here.