This container is only possible because of how easy it is to mount your X11 socket to a container.
I decided to try my hand at making a pycharm container for my ubuntu dev box, here goes nothing!
docker is going to need permission to mount the X11 socket. The following command should do the trick:
xhost +local:docker
To get the image, you have two options, you can build it or you can pull it from docker-hub
docker pull kongkoro/pycharm
download the kongkoro/pycharm Dockerfile, and navigate to that directory and run the following command:
docker build -t kongkoro/pycharm .
If you just want to try out the container do this:
docker run -it -v /tmp/.X11-unix/:/tmp/.X11-unix/ -e DISPLAY=$DISPLAY --rm kongkoro/pycharm
For a little more persistence try this:
docker run -it -v /tmp/.X11-unix/:/tmp/.X11-unix/ -v ~/PycharmProjects:/root/PycharmProjects -v ~/.PyCharm40:/root/.PyCharm40 -e DISPLAY=$DISPLAY --rm kongkoro/pycharm
Content type
Image
Digest
sha256:55fd60935…
Size
357.2 MB
Last updated
over 9 years ago
docker pull kongkoro/pycharm