Starting Spotify in Docker on Mac
Hi, I'm trying to start Spotify on Mac inside a Docker container.
I tried with Firefox, redirecting the video output to X11 server, and it run successfully.
If I try with Spotify, I got following errors:
[1124/005003:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak
[1124/005003:ERROR:main_delegate.cc(752)] Could not load cef_extensions.pak
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[1124/005004:ERROR:gl_context_glx.cc(108)] Couldn't make context current with X drawable.
[1124/005004:ERROR:gpu_info_collector.cc(51)] gl::GLContext::MakeCurrent() failed
[1124/005004:ERROR:gpu_info_collector.cc(114)] Could not create context for info collection.
[1124/005004:ERROR:gpu_main.cc(503)] gpu::CollectGraphicsInfo failed (fatal).
[1124/005004:ERROR:gpu_child_thread.cc(390)] Exiting GPU process due to errors during initialization
[1124/005004:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
I'm relatively new to Docker, but, if I understood the point, it should run on my Mac exactly as it runs on your Linux, shouldn't it?
Why these errors? Can someone help me?
Please post the command you are using to start the container.
I have the same issue, it appears to briefly load a window, then rapidly exits
docker run -it -e DISPLAY=10.0.17.9:0 --name spotify jess/spotify
[0112/130652:ERROR:browser_main_loop.cc(231)] Running without the SUID sandbox! See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the sandbox on.
[0112/130652:ERROR:main_delegate.cc(773)] Could not load cef_extensions.pak
[0112/130653:ERROR:main_delegate.cc(773)] Could not load cef_extensions.pak
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[0112/130653:ERROR:gl_context_glx.cc(108)] Couldn't make context current with X drawable.
[0112/130653:ERROR:gpu_info_collector.cc(51)] gfx::GLContext::MakeCurrent() failed
[0112/130653:ERROR:gpu_info_collector.cc(114)] Could not create context for info collection.
[0112/130653:ERROR:gpu_main.cc(502)] gpu::CollectGraphicsInfo failed (fatal).
[0112/130653:ERROR:gpu_child_thread.cc(369)] Exiting GPU process due to errors during initialization
[0112/130653:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
13:06:58.066 E [storage_impl.cpp:2767 ] Storage error: realm: -1, file: 0000000000000000000000000000000000000000, error: 18, OS error: 61, count: 1, path /home/spotify/.cache/spotify/Storage/
However I can run other images such as geary, or firefox just fine
docker run -it -e DISPLAY=10.0.17.9:0 --name firefox jess/firefox
(firefox:1): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
process 1: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
Docker for mac
Docker version 1.13.0-rc5, build 43cc971
you need to mount /etc/machine-id