Remote docker-compose php interpreter configuration throws error
Ubuntu 20.04
A Remote php interpreter configuring throws error when pointing the docker-compose.yml .
Same project, same docker-compose.yml was working just fine on my computer so it's definitely parcable. I had to replace my computer with the current one and suddenly it stops working.
Any ideas what might be the problem? 10x
请先登录再写评论。
Would it be possible to share a copy of your Docker Compose file?
Also, please try this super-simple docker-compose.yml on your setup:
Would it also fail to parse?
I meet the same issue . Here is my docker-compose.yml
version: '2'
services:
test-image:
image: php:8.2.10-fpm
container_name: php8.2
restart: always
extra_hosts:
- "docker:127.0.0.1"
privileged: true
tty: true
And Here is the version info
xxMBP:ai xx$ /usr/local/bin/docker-compose -v
Docker Compose version v2.21.0-desktop.1
xxMBP:ai xx$ /usr/local/bin/docker -v
Docker version 24.0.6, build ed223bc
phpstorm:
PhpStorm 2021.1.4
I would suggest updating PhpStorm to the latest build (2023.2.3) as lot of things in Docker Compose support were changed since then.
ps. Also, it is not a good idea to use eval reset “solutions”.
Abstracting from moral judgments, there is technical side to consider as these “solutions” may change the way how IDE performs thus making it unpredictable.