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?

Login to See the Rest of the 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-compose

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

© 2024 - ErnesTech - Privacy
E-Commerce Return Policy