2021-03-12 02:51:45 +01:00
|
|
|
# firefox-docker
|
|
|
|
|
2023-06-06 08:42:47 +02:00
|
|
|
|
|
|
|
**BUILD IMAGE**
|
|
|
|
|
|
|
|
docker build --tag firefox:$(grep 'VERSION' Dockerfile |awk '{print $3}') .
|
|
|
|
|
|
|
|
Re-Tag image:
|
|
|
|
|
|
|
|
docker tag firefox:$(grep 'VERSION' Dockerfile |awk '{print $3}') firefox:latest
|
|
|
|
|
2021-03-12 02:51:45 +01:00
|
|
|
**LAUNCH FIREFOX**
|
|
|
|
|
|
|
|
To launch Firefox from the container run the command:
|
|
|
|
~~~
|
2023-06-06 08:42:47 +02:00
|
|
|
|
|
|
|
RUN from local image (your build):
|
|
|
|
|
|
|
|
docker run -ti --rm -e DISPLAY=$DISPLAY.0 -v /tmp/.X11-unix:/tmp/.X11-unix firefox:latest
|
|
|
|
|
|
|
|
RUN from my image (my build):
|
|
|
|
|
|
|
|
docker run -ti --rm -e DISPLAY=$DISPLAY.0 -v /tmp/.X11-unix:/tmp/.X11-unix luisgutierrez/firefox:latest
|
2021-03-12 02:51:45 +01:00
|
|
|
~~~
|
|
|
|
|
|
|
|
It is not necessary to invoke Firefox, it is launched automatically when executing the container
|
|
|
|
|
2021-03-13 16:43:13 +01:00
|
|
|
Luisgulo (soloconlinux.org.es)
|