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?

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.



Edit this Article
docker-compose docker Technology published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.
Your Session is Ending
Login to Continue


© 2021 - ErnesTech - Privacy