Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console output is not visible when running in a Windows container #7

Open
Kralizek opened this issue Oct 21, 2020 · 0 comments
Open

Comments

@Kralizek
Copy link
Contributor

This is the output when running with verbosity level set to Trace

> docker run -v C:\Users\renato.golia\.aws\:C:\Users\ContainerAdministrator\.aws --rm a4b8 --bucket emg-tech-dev --prefix apps/console -v Trace
dbug: Microsoft.Extensions.Hosting.Internal.Host[1]
      Hosting starting
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: C:\app
dbug: Microsoft.Extensions.Hosting.Internal.Host[2]
      Hosting started
info: AWSSDK[0]
      Found credentials using the AWS SDK's default credential search
dbug: EMG.Tools.EnsureUnique.Concurrency.S3ConcurrencyService[0]
      Testing if e7568f044be8224f05dd9af0c7c7e2d2 exists
dbug: EMG.Tools.EnsureUnique.Concurrency.S3ConcurrencyService[0]
      Token e7568f044be8224f05dd9af0c7c7e2d2 not found: apps/console/e7568f044be8224f05dd9af0c7c7e2d2
dbug: EMG.Tools.EnsureUnique.Concurrency.S3ConcurrencyService[0]
      Creating lock object for token e7568f044be8224f05dd9af0c7c7e2d2 token: apps/console/e7568f044be8224f05dd9af0c7c7e2d2
dbug: EMG.Tools.EnsureUnique.DefaultProcessExecutor[0]
      Lock on token e7568f044be8224f05dd9af0c7c7e2d2 acquired
dbug: EMG.Tools.EnsureUnique.DefaultProcessExecutor[0]
      Starting: C:\app\ConsoleApp.exe  with token: e7568f044be8224f05dd9af0c7c7e2d2
dbug: EMG.Tools.EnsureUnique.DefaultProcessExecutor[0]
      Exit code: 0
dbug: EMG.Tools.EnsureUnique.DefaultProcessExecutor[0]
      Releasing lock on token e7568f044be8224f05dd9af0c7c7e2d2
dbug: EMG.Tools.EnsureUnique.Concurrency.S3ConcurrencyService[0]
      Testing if e7568f044be8224f05dd9af0c7c7e2d2 exists
dbug: EMG.Tools.EnsureUnique.Concurrency.S3ConcurrencyService[0]
      Token e7568f044be8224f05dd9af0c7c7e2d2 found: apps/console/e7568f044be8224f05dd9af0c7c7e2d2
dbug: EMG.Tools.EnsureUnique.Concurrency.S3ConcurrencyService[0]
      Deleting lock object for token e7568f044be8224f05dd9af0c7c7e2d2 token: apps/console/e7568f044be8224f05dd9af0c7c7e2d2
dbug: EMG.Tools.EnsureUnique.DefaultProcessExecutor[0]
      Lock on token e7568f044be8224f05dd9af0c7c7e2d2 released
dbug: Microsoft.Extensions.Hosting.Internal.Host[3]
      Hosting stopping
info: Microsoft.Hosting.Lifetime[0]
      Application is shutting down...
dbug: Microsoft.Extensions.Hosting.Internal.Host[4]
      Hosting stopped

For some reason the standard output isn't forwarded like in Linux.

Here is the source code of the test program.

using System;
using System.Threading.Tasks;

namespace ConsoleApp
{
    class Program
    {
        static async Task Main(string[] args)
        {
            Console.WriteLine("Loading...");

            await Task.Delay(TimeSpan.FromSeconds(10));

            Console.WriteLine("Bye!");
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant