M
M
mazahaler2020-11-29 17:31:52
Windows
mazahaler, 2020-11-29 17:31:52

How to fix .OSError: [Errno 22] Invalid argument on docker-compose up?

Hello, I'm trying to raise a project on Windows (everything is fine on Linux) with the docker-compose up -d command.
I get the error: ERROR: .OSError: [Errno 22] Invalid argument: '/support/docker/docker-compose.yml:./support/docker/docker-compose.build.yml:./support/docker/docker-compose .local.yml'
Error:
5fc3b0ad5d029744745486.png
Apparently, slashes are added to the beginning (for some reason).
There is a line in .env:
5fc3b058d056a779218949.png
Actually, the question is how to fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2020-11-29
@shurshur

Windows uses COMPOSE_PATH_SEPARATOR=';' but this can be overridden via env.
Also, on Windows, path components are separated by a backslash, so in this case, docker-compose assumed that COMPOSE_FILE contained a single filename located in the current directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question