How to run firefox on Docker
2018-01-09 23:30:34
2018-01-09 23:07:47
Autor: Sony Santos
http://gigawiki.com/sony/how-to-run-firefox-on-docker
Permalink: http://gigawiki.com/4842
categ = list, solutions, tips; language = english; subject = docker, GUI
1. get and copy the xauth cookie:
xauth list

2. start ubuntu container
docker run -it --rm --name=firefox --net=host -e DISPLAY -v /tmp/.X11-unix ubuntu:16.04 bash

3. inside container, install some things:
apt-get update
apt-get install firefox xauth

4. paste xauth cookie:
xauth add PASTE_COOKIE_HERE

5. run firefox:
firefox

6. at this point, on host, commit to use later:
docker commit firefox firefox:0.1

7. you can run firefox later:
docker run -it --rm --name=firefox --net=host -e DISPLAY -v /tmp/.X11-unix ubuntu:16.04 firefox

Source: https://www.youtube.com/watch?v=RDg6TRwiPtg
blog comments powered by Disqus
Login:
Senha:
Para logar, você precisa ter o Javascript habilitado.