Run the container in the background
docker run -d -p 5900:10000 hhuchzh/xprafirefox
and use Xpra on the host to attach to container's GUI
xpra attach tcp:localhost:PORT
(replace PORT with the port number exposed from the container)
If you would like to have a persistent profile used in the container, you can mount a host directory into /profile inside the container by adding a -v option to docker run, for example:
docker run -d -v /home/user/firefox_profile:/profile hhuchzh/xprafirefox
Simultaneously running multiple containers from the same profile directory is not recommended, Firefox will not like it.
Similarly, you can do the same for /downloads directory inside the container.
Both volumes should have read/write permissions for user ID 1000, under which is used for starting firefox in the container.
Content type
Image
Digest
Size
266.2 MB
Last updated
almost 10 years ago
docker pull hhuchzh/xprafirefox