GUI Application with docker

GUI Application with docker

hello folks!! In this blog i am going to explain how we can run a GUI application on Docker Container.

First of all we need to know what is Docker ?

A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings. A Container images become containers at runtime and in the case of Docker containers - images become containers.

Docker is nothing but a software platform for building applications based on containers â€” small and lightweight execution environments that make shared use of the operating system kernel but otherwise run in isolation from one another.

No alt text provided for this image

what is X server ?

An X server is a program in the X window system that runs on local machines(i.e., the computers used directly by users) and handles all access to the graphics cards, display screens and input devices (typically a keyboard and mouse) on those computers. The X Window System, often referred to merely as X, is a complete, cross-platform  and free client server system for managing GUI(graphical user interfaces) on single computers and on network of computers. The client-server model is an architecture that divides the work between two separate but linked applications, referred to as client and server.

I am going to launch a GUI application 'gedit', which is a text Editor. I am using RHEL8 as OS, on which i already installed docker on my system.

docker version:-

No alt text provided for this image

I create a Dockerfile to build a docker image with image name 'd_gedit'

No alt text provided for this image

I used docker build command to build image

No alt text provided for this image
No alt text provided for this image

after building the docker image i use docker run command to run image named with 'g_edit'

No alt text provided for this image

And finally, i got output, a GUI interface of 'gedit' texteditor.

No alt text provided for this image

Thank you!



要查看或添加评论,请登录

Niraj Kumar的更多文章

  • Deployment Of Machine Learning model inside Docker Container

    Deployment Of Machine Learning model inside Docker Container

    Hello connections!! In this article, i am going to deploy a machine learning model inside docker container. To run…

  • Ansible playbook for K8S multinode cluster on AWS

    Ansible playbook for K8S multinode cluster on AWS

    Hello connections!! In this blog i am going setup multi node kubernetes cluster setup on AWS by using Ansible. I wrote…

  • Case Study On AWS SQS Service

    Case Study On AWS SQS Service

    Hello connections, In this blog i am gonna discuss about SQS service of Amazon. What is Amazon SQS ? Amazon SQS is a…

  • Case Study On OpenShift

    Case Study On OpenShift

    Hello Connections, in this blog i am gonna discuss about openshift as a technology and its use cases. what is OpenShift…

  • Apache Webserver and Haproxy server configuration on AWS with Ansible

    Apache Webserver and Haproxy server configuration on AWS with Ansible

    Hello connections, in this blog i am going to configure Apache webserver and Haproxy server on AWS EC2 instance using…

  • Industry Usecases Of Jenkins

    Industry Usecases Of Jenkins

    Hello connections!! In this blog i am going to talk about Jenkins which is a automation tool/ software, mostly used in…

  • Network Topology setup

    Network Topology setup

    Hello Folks!! In this blog i am gonna discuss how we can create a network topology setup. There are three systems…

  • Amdocs with AWS cloud services

    Amdocs with AWS cloud services

    Amazon Web Services (AWS) is an evolving cloud computing platform that provides on-demand service to individuals…

  • Azure Kubernetes Service

    Azure Kubernetes Service

    Kubernetes is by far the most popular container orchestration tool, yet the complexities of managing the tool have led…

  • Neural Network

    Neural Network

    What are Neural Networks? Neural networks are a set of algorithms, they are designed to mimic the human brain, that is…

    1 条评论

社区洞察