Docker container to run PyCharm Professional Edition
6.0K
Docker container to run PyCharm Professional Edition (https://www.jetbrains.com/pycharm/)
docker run --rm \
-e DISPLAY=${DISPLAY} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ~/.PyCharm:/home/developer/.PyCharm \
-v ~/.PyCharm.java:/home/developer/.java \
-v ~/.PyCharm.py2:/usr/local/lib/python2.7 \
-v ~/.PyCharm.py3:/usr/local/lib/python3.7 \
-v ~/.PyCharm.share:/home/developer/.local/share/JetBrains \
-v ~/Project:/home/developer/Project \
--name pycharm-$(head -c 4 /dev/urandom | xxd -p)-$(date +'%Y%m%d-%H%M%S') \
rycus86/pycharm-pro:latest
docker.exe run --rm -d ^
--name pycharm-pro ^
-e DISPLAY=YOUR_IP_ADDRESS:0.0 ^
-v %TEMP%\.X11-unix:/tmp/.X11-unix ^
-v %USERPROFILE%\pycharm-docker:/home/developer ^
-v %USERPROFILE%\pycharm-docker\python2.7:/usr/local/lib/python2.7 ^
-v %USERPROFILE%\pycharm-docker\python3.7:/usr/local/lib/python3.7 ^
rycus86/pycharm-pro:latest
Docker Hub Page: https://hub.docker.com/r/rycus86/pycharm-pro/
You'll still need a license to use the application!
The IDE will have access to Python 2 and 3 both and to Git as well.
Project folders need to be mounted like -v ~/Project:/home/developer/Project.
The actual name can be anything - I used something random to be able to start multiple instances if needed.
To use pip (or pip3) either use the terminal in PyCharm or install from the terminal from inside the container like docker exec -it pycharm-running bash then install using pip.
To run container on Windows hosted machines you will need to have some X server installed and launched (e.g. Xming)
Content type
Image
Digest
sha256:45218f93c…
Size
936.2 MB
Last updated
over 3 years ago
docker pull rycus86/pycharm-pro:2023.1.2