firefox-docker/README.md

35 lines
713 B
Markdown
Raw Permalink Normal View History

2021-03-12 02:51:45 +01:00
# firefox-docker
**BUILD IMAGE**
2023-06-06 08:54:21 +02:00
~~~
docker build --tag firefox:$(grep 'VERSION' Dockerfile |awk '{print $3}') .
2023-06-06 08:54:21 +02:00
~~~
2023-06-06 08:45:06 +02:00
**RE-TAG IMAGE**
2023-06-06 08:54:21 +02:00
~~~
docker tag firefox:$(grep 'VERSION' Dockerfile |awk '{print $3}') firefox:latest
2023-06-06 08:54:21 +02:00
~~~
2021-03-12 02:51:45 +01:00
**LAUNCH FIREFOX**
2023-06-06 08:45:06 +02:00
To launch Firefox from the container run the command
RUN from local image (your build):
2023-06-06 08:45:06 +02:00
~~~
docker run -ti --rm -e DISPLAY=$DISPLAY.0 -v /tmp/.X11-unix:/tmp/.X11-unix firefox:latest
2023-06-06 08:45:06 +02:00
~~~
RUN from my image (my build):
2023-06-06 08:45:06 +02:00
~~~
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)