Building an ASP.NET Console app in a Docker Container

Sign in to queue

The Discussion

  • User profile image
    Max

    This is a great video, and it appears to be easy to publish and run a console application to Docker hosted on Azure. Can you pass arguments to the console application in docker? For instance, if my console application, foo.exe, took an argument bar (foo.exe -bar), where can I reasonably insert that into the auto-generated command?

  • User profile image
    Dan

    The easy way to do it would be to pass it in via Docker Run, the same place where we call the "foo" app to run, just like you would from a console. If you need to make it more dynamic, then you probably want one app to run and then call an external process to call another console app directly from the command line, much like that demo calls a command line utility.

    Hope this helps,

    Dan 

Add Your 2 Cents