GUI container on the Docker
Jun 1, 2021
π GUI container on the Docker
π Launch a container on docker in GUI mode
π Run any GUI software on the container
- First of all we have to create workspace
mkdir Docker-GUI
- Now we have to go inside the workspace and than create a file name it Dockerfile
vim Dockerfile
- Now write the following code (given in screenshot) in Dockerfile
- Now we have to build an image for this we have to use following command
docker build -t <image name> .
- Now we can check our build image by using
docker images
- Now we have to launch GUI application on Docker container for that we have to use
docker run -it --env="DISPLAY" --net=host --name <Application Name what you want to give> <name of image that we create>
- Now in the end Our application is launched successfully