win10 配置laradock(docker)


报错信息:


```bash

PS G:\laradock> docker-compose exec —user=laradock laradock_workspace_1 bash

Traceback (most recent call last):

  File "docker-compose", line 3, in <module>

  File "compose\cli\main.py", line 68, in main

  File "compose\cli\main.py", line 118, in perform_command

  File "compose\cli\main.py", line 401, in exec_command

  File "compose\project.py", line 142, in get_service

  File "compose\project.py", line 630, in __init__

UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 0: ordinal not in range(128)

Failed to execute script docker-compose

```


解决方法:

1. 删除docker自带的docker-compose

我本机安装在C:\Program Files\Docker\Docker\resources\bin下面。删除docker-compose.exe(如有环境变量也删除)。


2. 安装python3(自带pip)


```bash

pip install docker-compose

```


Install docker-compose in a Python 3 environment