相关疑难解决方法(0)

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
查看次数

无法在launchSettings.JSON中为Net.Core应用程序设置端口

我编辑了launchSettings.JSON文件并更改了端口.

"Gdb.Blopp": {
  "commandName": "Project",
  "launchBrowser": false,
  "launchUrl": "http://localhost:4000",
  "environmentVariables": {
    "ASPNETCORE_ENVIRONMENT": "Development"
  }
Run Code Online (Sandbox Code Playgroud)

不过,它仍然从5000端口开始.那个设置是否被忽视了,还是我错过了别的什么?

json asp.net-core

4
推荐指数
1
解决办法
6744
查看次数

标签 统计

.net-core ×1

asp.net-core ×1

docker ×1

dockerfile ×1

json ×1