小编Muh*_*ĞAN的帖子

dotnet docker /bin/sh: 1: [dotnet,: not found

I build successfully with dockerfile, but when I try to run a new container from the build image, I get the following error:

What do i have to do for the solution?

Error : /bin/sh: 1: [dotnet,: not found

docker run command:

docker run --rm -it -p 8080:80 furkaandogan/myapp:0.1
Run Code Online (Sandbox Code Playgroud)

Dockerfile:

FROM microsoft/aspnetcore:1.1
ARG source
WORKDIR /app
ENV ASPNETCORE_URLS http://*:80
EXPOSE 80
COPY ./publish/myapp .
ENTRYPOINT ["dotnet", "myapp.dll"]
Run Code Online (Sandbox Code Playgroud)

docker .net-core dockerfile

5
推荐指数
2
解决办法
8892
查看次数

标签 统计

.net-core ×1

docker ×1

dockerfile ×1