Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm: Error while parsing "docker-compose.yml": Process `docker-compose config` failed

This error appears randomly when I'm working with docker-compose on Windows 10, sometimes after pycharm already working with docker-compose as interpreter. I tried:

  • Make sure docker-compose file is valid, without tabs instead of spaces.

  • Use yml and yaml suffixes (sometimes yaml works and yml doesn't, sometimes both are working or not working)

  • Add project-compose to configuration files.

Problem is 'solved' just after rebooting, and then happened again.

like image 737
Noyah Avatar asked Mar 03 '23 12:03

Noyah


1 Answers

Linux here

tl;dr: same solution as for windows

  1. check path to docker-compose executable:

    ➤ which docker-compose
    /home/voy/.pyenv/shims/docker-compose
    
  2. Go to File | Settings | Build, Execution, Deployment | Docker | Tools | Docker Compose Executable and paste docker compose executable path from above

    linux is better

  3. Restart pycharm

like image 146
voy Avatar answered Mar 05 '23 03:03

voy