Open peeyushpashine opened 6 years ago
Hmm... I don't think that I get your question right... but here is what you can try out in order having a difficulty running a container:
Step 1/11 : FROM microsoft/dotnet:2.1-sdk ---> 1e365a434b1b Step 2/11 : ENV NUGET_XMLDOC_MODE skip ---> Using cache ---> f47d21c4edd8 Step 3/11 : WORKDIR /vsdbg ---> Using cache ---> 88e81756c1e4 Step 4/11 : RUN apt-get update && apt-get install -y --no-install-recommends unzip && rm -rf /var/lib/apt/lists/* && curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l /vsdbg ---> Using cache ---> e0212f767210 Step 5/11 : RUN mkdir /app ---> Using cache ---> 7df3c5797935 Step 6/11 : WORKDIR /app ---> Using cache ---> f6c72a445420 Step 7/11 : COPY App.csproj /app ---> Using cache ---> cdbfa152d867 Step 8/11 : RUN dotnet restore ---> Using cache ---> 05d2d810f87c Step 9/11 : COPY . /app ---> a5d2eba86970 Step 10/11 : RUN dotnet publish -c Debug -o out ---> Running in 60edde08d7ed Microsoft (R) Build Engine version 15.7.179.6572 for .NET Core Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 85.15 ms for /app/App.csproj. App -> /app/bin/Debug/netcoreapp2.1/App.dll App -> /app/out/ Removing intermediate container 60edde08d7ed ---> 494fbbc00b4f Step 11/11 : ENTRYPOINT ["/bin/bash", "-c", "sleep infinity"] ---> Running in 3bab6987c102 Removing intermediate container 3bab6987c102 ---> 25850489c14c Successfully built 25850489c14c Successfully tagged docker.dotnet.debug:latest Running a new container docker.dotnet.debug1 39a15718d91994731fcf6f13106b05fa320df4e8dfbb01199f51baa82008e335
Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.0/System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/app/out/App.dll'. Symbols loaded. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.0/System.Runtime.dll'. Module was built without symbols. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.0/System.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.0/System.Threading.dll'. Module was built without symbols. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.0/System.Runtime.Extensions.dll'. Module was built without symbols. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.0/System.Text.Encoding.Extensions.dll'. Module was built without symbols. Hello Debug World The program '[17] App.dll' has exited with code 0 (0x0)._
And the last thing to try out is to look into log of the container itself. If everything was ok it should be empty, but if you have some issue with running a container it might contain some insights
run the following command:
docker logs docker.dotnet.debug_1
Running docker run is not showing anything in console. Can you update "how to run" in readme?