Skip to content

Commit a6087ee

Browse files
authored
Complete - Launch Firefox inside Docker Container
1 parent 29c9f3b commit a6087ee

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

Dockerized Mozilla Firefox/README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
## To get started with Dockerized Firefox, follow these simple steps:
66

77
1. 📥**Pulling an Image from DockerHub**
8+
89
```bash
9-
docker pull azfaralam440/firefox:latest
10+
docker pull azfaralam440/firefox:latest
1011
```
1112
2. 🐢**Now run the container, after it automatically open firefox**
1213

1314
```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
1516
```
1617

1718
After that, it will automatically open Firefox inside the Docker container. Enjoy your Firefox browser! 🎉
@@ -28,24 +29,24 @@
2829
> [!NOTE]
2930
> Create Dockerfile from here, you will get Dockerfile [here](https://github.com/mdazfar2/HelpOps-Hub/blob/main/Dockerized%20Mozilla%20Firefox/Dockerfile).
3031

31-
3. 🛠️ **Build the Docker `Images`**
32+
2. 🛠️ **Build the Docker `Images`**
3233

3334
```bash
34-
docker build -t <ur-dockerHUB-userName>/firefox:v1 .
35+
docker build -t <ur-dockerHUB-userName>/firefox:v1 .
3536
```
36-
4. 📤 **Pushing Docker image to DockerHub `(optional)`-**
37+
3. 📤 **Pushing Docker image to DockerHub `(optional)`-**
3738
```bash
38-
docker login
39-
docker push <ur-dockerHUB-userName>/firefox:v1
39+
docker login
40+
docker push <ur-dockerHUB-userName>/firefox:v1
4041
```
4142

42-
5. 📥 **And then pulling the image from your own `DockerHub`**
43+
4. 📥 **And then pulling the image from your own `DockerHub`**
4344
```bash
44-
docker pull <ur-dockerHUB-userName>/firefox:v1
45+
docker pull <ur-dockerHUB-userName>/firefox:v1
4546
```
4647

47-
6. 🐢**Now run the container, after it automatically open firefox**
48+
5. 🐢**Now run the container, after it automatically open firefox**
4849
```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
5051
```
5152
After that, it will automatically open Firefox inside the Docker container. Enjoy your Firefox browser! 🎉

0 commit comments

Comments
 (0)