Graphical container using Docker

command : docker ps
No container is running
command : docker run -it --name=’os1’ --env=DISPLAY --net=host 
centos:latest
command : docker ps
Os1 container is running
command : yum install firefox
Installing Firefox
command : firefox
Firefox Open in CentOS

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store