Skip to content

docker-compose relative file path. Error: Can't read compose file project/./v2/../../v2/docker-compose.yml #58

@max-baranikov

Description

@max-baranikov

I have docker-compose.yml file in the root of my project and I can run it directly from terminal with docker-compose up
But when I try to add a docker debug configuration from docker-compose file, I cannot set proper absolute path.
When I add path do docker-compose.yml, everything is fine.

image

But when I press OK, the IDE replace it with a relative path based on my project dir, like this:

image

And obviously this configuration cannot run with the following error:

Deploying 'Compose: v2'...
Failed to deploy 'Compose: v2': Can't read compose file at /path/to/my/project/./v2/../../v2/docker-compose.yml

How can I set the absolute path, or make this relative path works in IDE?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions