错误:'ascii'编解码器无法解码位置91中的字节0xe2:序数不在范围内(128)

时间:2017-05-03 12:53:08

标签: .net docker docker-compose

docker-compose build工作正常,但如果尝试使用docker-compose up,则会出现以下错误消息:

ERROR: for identityserver  'ascii' codec can't decode byte 0xe2 in position 91: ordinal not in range(128)
Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 64, in main
  File "compose/cli/main.py", line 116, in perform_command
  File "compose/cli/main.py", line 876, in up
  File "compose/project.py", line 416, in up
  File "compose/parallel.py", line 66, in parallel_execute
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 91: ordinal not in range(128)
Failed to execute script docker-compose

搬运工-compose.yml:

identityserver:
 build: ./IdentityServer
 dockerfile: ./dockerfile
 container_name: identityServer
 volumes:
   - ./:/app/
 environment:
  - ASPNETCORE_ENVIRONMET=Development
 ports:
  - "5000:5000"

dockerfile:

FROM microsoft/dotnet:1.1-sdk
WORKDIR /app
Copy . .
RUN dotnet clean
RUN dotnet restore
RUN dotnet publish -c Release -o out

Docker版本:

elds-MBP:dashboard eld$ docker --version
Docker version 17.03.1-ce, build c6d412e
elds-MBP:dashboard eld$ docker-compose --version
docker-compose version 1.11.2, build dfed245

Operationsystem:macos

0 个答案:

没有答案