Docker Compose Can’t find a suitable configuration file in this directory

Table of Content

Docker Compose Can't find a suitable configuration file in this directory

Err Info

ERROR:
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml, compose.yml, compose.yaml

image

Fix Err

I had the exactly same issue. After some digging I found out that the docker-compose was installed as a "snap" package. Applications from snap packages are running in a sandbox and they do not see the /tmp directory where I happened to have my docker-compose.yml file. Solution:

sudo snap remove docker
sudo apt install docker.io docker-compose

https://github.com/docker/compose/issues/6361#issuecomment-462346569

Leave a Reply

Your email address will not be published.