Docker Community Forums

Share and learn in the Docker community.

Docker container exit immedeatly after start

docker

(Dockervaanam) #1

Hi,

Docker container exit (145) immediately after starts. Please help.

when i run the command,

$ docker start container_name

i got below error :

Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

Docker file :
FROM microsoft/aspnetcore-build:2.0 AS build-env
WORKDIR /app

COPY *.csproj ./
RUN dotnet restore

COPY . ./
RUN dotnet publish -c Release -o out

FROM microsoft/aspnetcore:2.0
WORKDIR /app
COPY --from=build-env /app/out .

EXPOSE 6379

ENTRYPOINT [“dotnet”, “svcode.dll”]

docker compose.yml
version: 2.1
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :8080
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
services:
vscode:
image: vscode
build: .
environment:
NODE_ENV: development
ports:
- 8080:8080