Asp.net core docker - skip ctrl-c message -
i have default asp.net core dockerfile (as created vs tools docker):
from microsoft/aspnetcore:2.0 arg source workdir /app expose 80 copy ${source:-obj/docker/publish} . entrypoint ["dotnet", "myapp.dll"]
when run image using docker run myimage
message in interactive console:
hosting environment: production content root path: /app listening on: http://[::]:80 application started. press ctrl+c shut down.
if press ctrl+c
, type docker start <imgid>
, no longer see message, , bash console not blocked.
how can docker run
bypassing annoying message?
you can use -d
flag docker run image starts in detached mode. in case not see output docker running in background.
docker run -d
Comments
Post a Comment