compose: docker-compose -f /my/path/docker-compose.yml - No such file or directory
Hi guys !
When doing a docker-compose -f /a/b/c/docker-compose.yml pull
from /a
-> it works.
When doing a docker-compose -f /a/b/c/docker-compose.yml pull
from /a/foo/bar
-> it does not work:
ERROR: .IOError: [Errno 2] No such file or directory: '/a/b/c/docker-compose.yml'
Didn’t investigate more on this problem.
$ docker-compose version
docker-compose version 1.8.0, build f3628c7
docker-py version: 1.9.0
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2h 3 May 2016
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 12
- Comments: 30
I was facing the same issue. My solution was changing the extension of
docker-compose
file fromyaml
to justyml
.docker-compose version 1.25.5, build unknown Docker version 19.03.11, build dd360c7 Ubuntu 18.04 same error for me.
Hi guys I’m getting this error while giving command can someone help in this…
THanks in advance
My problem seems to be an issue using many files…
i’m not that good in docker and i really don’t know how to solve this. Even because i’m using laradock and it has a lot of things on it that i don’t understand.
Any way, when i remove the bold text, it runs.
COMPOSE_FILE=docker-compose.yml:
docker-compose.dev.ymlBut it feels wrong. I’m going to downgrade docker version tomorrow and see how it works.
@Mat001 Cannot reproduce this bug with
docker-compose 1.20.1
.Thanks to whoever fixed that 😉
@samber @coolcow trying to reproduce but can’t. Can you elaborate test steps pls?
@coolcow I can’t see what is different between these two
cd /home/userBBB/ docker-compose -f /home/userAAA/subdir/test.yml up -d
# ERROR: .IOError: [Errno 2] No such file or directory: '/home/userAAA/subdir/test.yml'
cd /home/userAAA/ docker-compose -f /home/userAAA/subdir/test.yml up -d
# it works