Docker + Pycharm Problem + Fix

Ever had one of these issues with Pycharm 2018 and Docker?

Couldn't refresh skeletons for remote interpreter
The docker-compose process terminated unexpectedly: /usr/local/bin/docker-compose -f docker-compose.yml -f .PyCharm2018.3/system/tmp/docker-compose.override.8.yml run --rm --name skeleton_generator_643129755 python
Regenerate skeletons

or

can't open file '/opt/.pycharm_helpers/pycharm/django_test_manage.py' + "No such file or directory"

Then you should clear all pycharm helpers from your docker containers and images:

docker ps -a | grep -i pycharm | awk '{print $1}' | xargs docker rm
docker images | grep -i pycharm | awk '{print $3}' | xargs docker rmi

2 thoughts on “Docker + Pycharm Problem + Fix

  1. Gabriel

    Thanks, I couldn't for the life of me figure out why Pycharm wouldn't work with my Django container.

    You just saved my day!

    /Gabriel

    Reply
  2. Maciej

    Thanks a lot! I've spent around 4 hours figuring out how to set up Pycharm interpreter in a docker-compose container and it solved my problems.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.