There's WineHQ to run Windows applications on Linux (and macOS). But, what about other way around? What if you want to run Linux applications on Windows (and Mac). Docker is the answer but it if you think that Docker only can run terminal applications then you're wrong.
There's WineHQ to run Windows applications on Linux (and macOS). But, what about other way around? What if you want to run Linux applications on Windows (and Mac). Docker is the answer but it if you think that Docker only can run terminal applications then you're wrong. Q: Why would you like to run GUI applications inside Docker? A: Bad question. Jul 30, 2007 I have the urge to commit my 24' Core 2 Duo iMac to a single Linux operating system, thus giving up the goodness of my beloved Mac OS X. I am not a stranger to Linux, but I am a stranger to running Mac apps on Linux. On my PowerPC I can use SheepShaver to run Classic apps. The Mac-on-Linux project c.
Q: Why would you like to run GUI applications inside Docker?
A: Bad question. I don't know. This tutorial is not about the reason. It could be any reason.
Q: How can you run GUI applications inside a Docker container on Windows, Linux and Mac hosts?
A: Good question. I know the answer.
I am using a simple Docker image that I have created and uploaded into DockerHub. You can use it directly or make your own. It's as simple as this:
For Windows
Linux Run Macos Apps Mac
- Install VcXsrv Windows X Server using the address below
Run Linux Apps In Windows
![Apps Apps](https://static1.pointsinfocus.com/2016/03/displaycal-and-argyll-cms-quick-start-guide/installing-displaycal-2-480x241.png)
- Install & start XLaunch with usual Windows setup (a.k.a. next next) until you get to Extra Settings. Check all options as below and finish configuration. It's important to disable access control. Otherwise, the request from Docker will be rejected.
- Get your IP address using ipconfig command (My IP address was 192.168.1.68 yours might be different)
- Run Firefox GUI as below
docker run --rm -it -e DISPLAY=192.168.1.68:0.0 aliustaoglu/firefox
Is there a office outlook 2010 app for mac. This will create a container and from this container Firefox will run. When you finish with it, the container will be removed (--rm)
Quite easy
For Mac
For macOS we need to install xQuartz. You can use brew:
brew cask install xQuartz
Or download the dmg file:
After installing xQuartz, run it and check the option 'Allow connections from network clients'. Keep xQuarts running.
Now find your local IP address using
ifconfig
or any other method you know. My address was 192.168.1.76. And run bellow command:![Macos Macos](https://i.ytimg.com/vi/FFAiIGjPRec/maxresdefault.jpg)
xhost + 192.168.1.76
Now we are ready to run the docker image:
docker run --rm -e DISPLAY=192.168.1.76:0 -v /tmp/.X11-unix:/tmp/.X11-unix aliustaoglu/firefox
For Linux
X11 (X Windows System) is the GUI environment in Unix operating systems. Since it's a native Linux platform we don't need to install xQuartz or XLaunch as Linux already has it. We only need to run this command:
Linux Run Macos Apps Download
docker run --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix aliustaoglu/firefox