问题
今天在windows 10上面使用docker-compose一直报错,见下面。
Traceback (most recent call last):
File “docker-compose”, line 6, in
File “compose\cli\main.py”, line 71, in main
File “compose\cli\main.py”, line 101, in dispatch
File “compose\cli\utils.py”, line 86, in get_version_info
File “ntpath.py”, line 85, in join
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xbd in position 7: ordinal not in range(128)
[23648] Failed to execute script docker-compose
办法
去docker官网https://github.com/docker/compose/releases下载新的docker-compose,然后替换掉windows 10里你已经安装的docker-compose就可以了。
检查成功