|
5 | 5 | ## To get started with Dockerized Firefox, follow these simple steps: |
6 | 6 |
|
7 | 7 | 1. 📥**Pulling an Image from DockerHub** |
| 8 | + |
8 | 9 | ```bash |
9 | | - docker pull azfaralam440/firefox:latest |
| 10 | + docker pull azfaralam440/firefox:latest |
10 | 11 | ``` |
11 | 12 | 2. 🐢**Now run the container, after it automatically open firefox** |
12 | 13 |
|
13 | 14 | ```bash |
14 | | - docker run -it --rm --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" azfaralam440/firefox:latest |
| 15 | + docker run -it --rm --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" azfaralam440/firefox:latest |
15 | 16 | ``` |
16 | 17 |
|
17 | 18 | After that, it will automatically open Firefox inside the Docker container. Enjoy your Firefox browser! 🎉 |
|
28 | 29 | > [!NOTE] |
29 | 30 | > Create Dockerfile from here, you will get Dockerfile [here](https://github.com/mdazfar2/HelpOps-Hub/blob/main/Dockerized%20Mozilla%20Firefox/Dockerfile). |
30 | 31 |
|
31 | | -3. 🛠️ **Build the Docker `Images`** |
| 32 | +2. 🛠️ **Build the Docker `Images`** |
32 | 33 |
|
33 | 34 | ```bash |
34 | | - docker build -t <ur-dockerHUB-userName>/firefox:v1 . |
| 35 | + docker build -t <ur-dockerHUB-userName>/firefox:v1 . |
35 | 36 | ``` |
36 | | -4. 📤 **Pushing Docker image to DockerHub `(optional)`-** |
| 37 | +3. 📤 **Pushing Docker image to DockerHub `(optional)`-** |
37 | 38 | ```bash |
38 | | - docker login |
39 | | - docker push <ur-dockerHUB-userName>/firefox:v1 |
| 39 | + docker login |
| 40 | + docker push <ur-dockerHUB-userName>/firefox:v1 |
40 | 41 | ``` |
41 | 42 |
|
42 | | -5. 📥 **And then pulling the image from your own `DockerHub`** |
| 43 | +4. 📥 **And then pulling the image from your own `DockerHub`** |
43 | 44 | ```bash |
44 | | - docker pull <ur-dockerHUB-userName>/firefox:v1 |
| 45 | + docker pull <ur-dockerHUB-userName>/firefox:v1 |
45 | 46 | ``` |
46 | 47 |
|
47 | | -6. 🐢**Now run the container, after it automatically open firefox** |
| 48 | +5. 🐢**Now run the container, after it automatically open firefox** |
48 | 49 | ```bash |
49 | | - docker run -it --rm --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" <ur-dockerHUB-userName>/firefox:v1 |
| 50 | + docker run -it --rm --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" <ur-dockerHUB-userName>/firefox:v1 |
50 | 51 | ``` |
51 | 52 | After that, it will automatically open Firefox inside the Docker container. Enjoy your Firefox browser! 🎉 |
0 commit comments