Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker compose failing in windows 10

I am on docker for windows version 2.3.0.5 and my docker compose is failing with this stranger error :

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "docker-compose", line 3, in <module>
File "compose\cli\main.py", line 78, in main
TypeError: can only concatenate str (not "dict") to str
[25608] Failed to execute script docker-compose
like image 794
ziwdig44bugs Avatar asked Sep 22 '20 16:09

ziwdig44bugs


People also ask

How do I fix the error in Docker compose yml is unsupported?

How to fix: Version in "./docker-compose. yml" is unsupported. You can fix this issue by upgrading docker-compose to the newest version (just download the new script from the install section). Make sure you uninstall the any previous apt package before coping the script via curl sudo apt remove docker-compose .

Can I run Docker compose on Windows?

Install Docker ComposeIf you installed Docker Desktop/Toolbox for either Windows or Mac, you already have Docker Compose! Play-with-Docker instances already have Docker Compose installed as well. If you are on a Linux machine, you will need to install Docker Compose.

Can Windows 10 run in docker?

Requirements. Docker for Windows runs on 64-bit Windows 10 Pro, Enterprise, and Education; 1511 November update, Build 10586 or later. Docker plans to support more versions of Windows 10 in the future.


2 Answers

For me, it was because docker-compose wasn't able to find a referenced Dockerfile. This happened after renaming one of the projects (thus changing its folder's name).

like image 195
tgarcia Avatar answered Oct 06 '22 18:10

tgarcia


Thanks for your help, it turned out to be a windows issue with docker which is a nightmare. So I have restarted Docker and it works.

like image 3
ziwdig44bugs Avatar answered Oct 06 '22 18:10

ziwdig44bugs