File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,17 @@ This image launches Firefox with support for Java Webstart applications.
1515docker pull ugrawert/firefox-java:latest
1616```
1717
18+ ## Environment variables
19+
20+ The following environment variables can be passed via ` docker run -e ` .
21+
22+ | Variable | Explanation | Example |
23+ | --------- | --------------------------- | ---------------------- |
24+ | DISPLAY | The X11 display port to use | DISPLAY=:1 |
25+ | URL | Firefox opens this URL | URL=http://google.com/ |
26+ | uid | Run Firefox with this uid | uid=$(id -u) |
27+ | gid | Run Firefox with this gid | gid=$(id -u) |
28+
1829## Run
1930
2031``` sh
@@ -27,7 +38,6 @@ docker run --rm -ti \
2738 -v " ${HOME} /Downloads:/home/firefox/Downloads:rw" \
2839 -v " /tmp/.X11-unix:/tmp/.X11-unix" \
2940 -v " /dev/snd:/dev/snd" \
30- --privileged \
3141 -e " DISPLAY=unix${DISPLAY} " \
3242 -e " uid=$( id -u) " \
3343 -e " gid=$( id -g) " \
You can’t perform that action at this time.
0 commit comments