๐Ÿ“Œ GUI container on the Docker

Jaindivya
2 min readApr 15, 2021

๐Ÿ”… Launch a container on docker in GUI mode

๐Ÿ”… Run any GUI software on the container

I am going to run the Mozilla FiRefox on top of the docker container

Step-1: Check that you have docker installed in your OS by using

rpm -q docker-ce

Step-2: Now I created a dockerfile inside a folder named ws3 and the name of the file is dockerfile

I have written the following command inside the dockerfile

Step-3: My next step is to I want to build the dockerfile ,

So, for building the dockerfile the command used is as follows:

docker build -t myimage:1.0 .

I used โ€œ . โ€as I am inside the current directory

My image is successfully built..

Step-4: Now use the docker run command to run the dockerfile

docker run -it โ€” net-host -e DISPLAY myimage:1.0

Voila! My Mozilla Firefox is started successfully.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response