File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ The following environment variables can be passed via `docker run -e`.
3131``` sh
3232URL=https://remote-board/;
3333docker run --rm -ti \
34+ -v " $PWD /.ff_profile:/home/firefox/.mozilla/firefox" \
3435 -v " ${HOME} /Downloads:/home/firefox/Downloads:rw" \
3536 -v " /tmp/.X11-unix:/tmp/.X11-unix" \
3637 -e " DISPLAY=unix${DISPLAY} " \
@@ -49,6 +50,7 @@ xhost +localhost
4950``` sh
5051URL=https://remote-board/;
5152docker run --rm -ti \
53+ -v " $PWD /.ff_profile:/home/firefox/.mozilla/firefox" \
5254 -v " ${HOME} /Downloads:/home/firefox/Downloads:rw" \
5355 -v " /tmp/.X11-unix:/tmp/.X11-unix" \
5456 -e " DISPLAY=host.docker.internal:0" \
@@ -115,7 +117,7 @@ Run the following command to run `javaws` command instead of Firefox.
115117docker run --rm -ti \
116118 -v "${HOME}/Downloads:/home/firefox/Downloads:rw" \
117119 -v "/tmp/.X11-unix:/tmp/.X11-unix" \
118- -e "DISPLAY=host.docker.internal:0 " \
120+ -e "DISPLAY=unix${DISPLAY} " \
119121 -e "uid=$(id -u)" \
120122 -e "gid=$(id -g)" \
121123 ugrawert/firefox-java javaws /home/firefox/Downloads/launch.jpnl
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ NAME="firefox-java"
66IMAGE=" ${IMAGE:- ugrawert/ firefox-java} "
77X11_SOCKET=" ${X11_SOCKET:-/ tmp/ .X11-unix} "
88DOWNLOADS=" ${DOWNLOADS:- ${HOME} / Downloads} "
9+ PROFILE=" $PWD /.ff_profile"
910uid=${uid:- `id -u`}
1011gid=${gid:- `id -g`}
1112URL=${URL:- $1 }
@@ -21,6 +22,7 @@ case "$OSTYPE" in
2122esac
2223
2324docker run --rm -ti \
25+ -v " ${PROFILE} :/home/firefox/.mozilla/firefox" \
2426 -v " ${DOWNLOADS} :/home/firefox/Downloads:rw" \
2527 -v " ${X11_SOCKET} :/tmp/.X11-unix" \
2628 -e " DISPLAY=${DOCKER_DISPLAY} " \
You can’t perform that action at this time.
0 commit comments