Several error being reported on run
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:
- Indicate the version of the image using
docker image inspect --format='{{index .RepoDigests 0}}' zenika/alpine-chromezenika/alpine-chrome@sha256:7e3b38744596dacbd8d37491a206ab6fce1eb8bcbbff4b8314af92b154638887 - Execute
docker container run -it --rm --security-opt seccomp=$(pwd)/chrome.json zenika/alpine-chrome - See error
[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
| Software | Version(s) | How-to |
|---|---|---|
| Chromium | 89.0.4389.72 | docker container run -it --rm --entrypoint "" zenika/alpine-chrome chromium-browser --version |
| Image | 7e3b38 | docker image inspect --format='{{index .RepoDigests 0}}' zenika/alpine-chrome |
| Docker Engine | 20.10.5 | docker version |
Additional context Add any other context about the problem here.
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