Git Product home page Git Product logo

Comments (1)

sleemer avatar sleemer commented on July 19, 2024

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:

  1. Toggle output view and switch to 'OUTPUT' panel. It shows you the run-script's log, in our case it's the log of building an image and running spinning up a container with our app.
    something like the one below:
    _Killing all containers based on the docker.dotnet.debug image
    7902e2b7e1e1
    Building the image docker.dotnet.debug (debug).
    Sending build context to Docker daemon 6.656kB

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.debug_1
39a15718d91994731fcf6f13106b05fa320df4e8dfbb01199f51baa82008e335_

  1. 'DEBUG CONSOLE' shows the log from the running app in the container
    _Starting: "docker" exec -i docker.dotnet.debug_1 /vsdbg/vsdbg --interpreter=vscode

You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.

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)._

  1. 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

from docker.dotnet.debug.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.