Skip to content

DrSnowbird/pycharm-docker

Repository files navigation

PyCharm IDE in a Docker container

  • PyCharm VERSION=PyCharmCE2018.2.4

Requirements

  • Docker 1.13.1+ or latest 17.12.1-ce
  • An X11 server socket enabled (e.g. xhost+)

Run (recommended for easy-start)

Image is pulling from openkbs/pycharm-docker

./run.sh

Build

You can build your own image locally.

./build.sh

(Optional) Making plugins persist between sessions

If you run "./run.sh" instead of "docker-compose up", you don't have to do anything as below.

PyCharm configurations are kept on $HOME/PyCharmCE2018.1 inside the container, so if you want to keep them around after you close it, you'll need to share it with your host.

For example: (Version might be different - use run.sh instead)

docker run -ti --rm \
           -e DISPLAY=$DISPLAY \
           -v /tmp/.X11-unix:/tmp/.X11-unix \
           -v $HOME/PyCharmCE2018.1:/home/developer/PyCharmCE2018.1 \
           -v `pwd`:/home/developer/workspace \
           openkbs/PyCharm-docker

See Also - Docker-based IDE

See Also - Docker-based SQL GUI

Reference

Display X11 Issue

More resource in X11 display of Eclipse on your host machine's OS, please see

Other possible Issues

You might see the warning message in the launching xterm console like below, you can just ignore it. I googles around and some blogs just suggested to ignore since the IDE still functional ok.

** (eclipse:1): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wrKH8o5rny: Connection refused

** (java:7): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-wrKH8o5rny: Connection refused