jessfraz / dockerfiles

Various Dockerfiles I use on the desktop and on servers.
https://blog.jessfraz.com/post/docker-containers-on-the-desktop/
MIT License
13.65k stars 2.55k forks source link

jess/firefox won't start #576

Open dbolser opened 3 years ago

dbolser commented 3 years ago

Sorry if it's something I'm doing wrong, but when I try to run this image: https://hub.docker.com/r/jess/firefox

Which I assume comes from: https://github.com/jessfraz/dockerfiles/tree/master/firefox

I can't seem to get it to work:

docker run -it --net=host -e DISPLAY=$DISPLAY jess/firefox

(firefox:1): Gtk-WARNING **: 20:42:05.957: Locale not supported by C library.
    Using the fallback 'C' locale.
No protocol specified
Unable to init server: Could not connect: Connection refused
Error: cannot open display: :0

I've been poking around trying to get firefox to run under alpine, but I can't work out how to use docker-compose to copy my xauth list into the container... I honestly don't know why it's not working :(

dbolser commented 3 years ago

Well... I dun a try: https://github.com/dbolser/docker-firefox

ngaro commented 2 years ago

I have a modified version in my fork ( https://github.com/ngaro/dockerfiles ) that works. The comments in the dockerfile also contain instructions on how to run it. A PR has been send 2 years ago but it still isn't merged... Meanwhile you can just build using the dockerfile in my fork.

dbolser commented 2 years ago

Thanks