This is a container that runs Intellij.
- Intellij requires Java.
- Who wants to install Java?
- Impress your friends by running a GUI application in Docker.
- Make sure you're on a system running X.
- Disable X access control (don't do this on a public-facing machine):
$ xhost +
$ cd
to a path where you want to write some code.$ docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:$PWD -w $PWD -e DISPLAY=$DISPLAY hackenfreude/intellij
- You should see the Intellij splash screen and eventually Intellij.
- Have fun. Write some code. Close Intellij when you're done, and the container will shut down. Your files will be in the path on the host where you started.
- Reenable X access control:
$ xhost -
- Docker mounted the host's X socket in the continer as the container's X socket; this allows the container's GUI to pass back up to the host.
- Docker mounted the host's working directory in the container at the same path.
Open an issue.