Category : windows-container

I have a DESKTOP machine running Windows 10 running Windows 10, Microsoft 365, Docker Desktop running in Windows Containers mode. I have an Amazon EC2 machine running Windows Server 2019 and have installed Microsoft 365 on there too and access via RDP. Essentially what I’d like to is create an EC2 machine which allows me ..

Read more

I want to connect my Azure SQL databae to docker container Asp.net Core , which containe integration test when i run docker build -t test -f dockerFile i get these erreurs 1- Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler[3] Exception occurred while processing message. System.InvalidOperationException: IDX20803: Unable to obtain configuration from: ‘System.String’. at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() 2- The instance of ..

Read more

I’m trying to connect to SQL Server in docker window container through an Active Directory. I have found that I need to create an gMSA (group Managed Service Account): https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/manage-serviceaccounts https://www.youtube.com/watch?v=qiV_2mWgjUY&ab_channel=JacobAaronson On the AD server I have done: Add-KdsRootKey -EffectiveTime (Get-Date).AddHours(-10) New-ADGroup -Name "Docker Authorized Hosts" -SamAccountName "docker" -GroupScope DomainLocal New-ADServiceAccount -Name "docker" -DnsHostName "docker.gptest.local" ..

Read more

Having issues with a brownfield application (asp .netcore) migrating to a windows container running on mcr.microsoft.com/dotnet/core/aspnet:3.1 accessing the registry. Specifically, I’ve tried to run the application and make a call and I’m getting the below: Caught exception while emitting to sink Serilog.Core.Sinks.RestrictedSink: System.Security.SecurityException: The source was not found, but some or all event logs could ..

Read more

I am using below dockerfile content to install ghostscript within my windows container FROM mcr.microsoft.com/windows/servercore:ltsc2019 ADD https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs952/gs952w64.exe . RUN C:gs952w64.exe /S /NCRC CMD ["cmd.exe"] But this is failing with following error: The command ‘cmd /S /C C:tmpgs952w64.exe /S /NCRC’ returned a non-zero code: 3221225785 I am able to do silent installation of ghostscript with this ..

Read more

I am using below dockerfile content to install ghostscript within my windows container FROM mcr.microsoft.com/windows/servercore:ltsc2019 ADD https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs952/gs952w64.exe . RUN C:gs952w64.exe /S /NCRC CMD ["cmd.exe"] But this is failing with following error: The command ‘cmd /S /C C:tmpgs952w64.exe /S /NCRC’ returned a non-zero code: 3221225785 I am able to do silent installation of ghostscript with this ..

Read more

My windows docker container cannot resolve host.docker.internal, but it’s working with Linux containers. I would prefer to stay with Linux containers, but I am having trouble with an old .Net framework 4.7.2 application. My application connects to RabbitMQ on the local machine. This works as expected in the Linux containers, but with the windows container ..

Read more