docker-compose build: Can't find a sutable configuration file Linux Ubuntu

Question: What is going on, Docker got installed when I installed a Linuxe Ubuntu Server but now I cannot run docker-compose. Even when the docker-compose.yml file is in the directory. What could I be doing wrong?


Please Login to see the rest of the answer

Answer: There is a chance that you installed Docker Engine using a Snap or you installed the docker-compose as a Snap as well. This brings many problems as docker-compose could not find the compose.yml file.

In order to resolve this issue, unistall Docker Engine and then install Docker and docker-compose at the same time. See the command below:

[Command]: sudo snap remove docker
[Then]: sudo apt install docker.io docker-compose

When these commands run you will be up to the races, let me know if this helps you.



Write an Article
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2022 - ErnesTech - Privacy