Questions tagged [windows-container]

Windows containers are an operating system-level virtualization method for running multiple isolated Windows systems (containers) on a single control host.

Windows containers are an operating system-level virtualization method for running multiple isolated Windows systems (containers) on a single control host.

https://learn.microsoft.com/en-us/virtualization/windowscontainers/about/index

At runtime windows containers share the windows-kernel of the underlying operating system, which sets them apart from linux-containers. A windows container cannot run on a linux-kernel and vice-versa.

Use this tag for indicating that you are using containers which share a Windows kernel.

Do not use this tag if you are using linux containers on Windows.

352 questions
2
votes
0 answers

How to increase windows docker container disk space

i am trying to build a windows servercore image with scaled up disk space when i try docker run -it --storage-opt size=50G mcr.microsoft.com/windows/servercore:ltsc2019 powershell it does work and scales up the disk space within the container so if…
2
votes
1 answer

Issues while creating a Windows Container for Nexus repo

For business reasons I'm forced to create a Windows Container for our internal Nexus repo. This is my docker file: FROM mcr.microsoft.com/windows/nanoserver:1909 RUN mkdir "c:\\nexus" WORKDIR c:/nexus RUN mkdir "sonatype-work" RUN mkdir…
2
votes
1 answer

Docker cannot run image due to a “hcsshim::System::CreateProcess: failure in a Windows system call”

I wrote the following multi-stage build in a Dockerfile to both build and run an image for a .NET Framework console application: FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 AS build WORKDIR /app COPY . . RUN nuget…
Pine Code
  • 2,466
  • 3
  • 18
  • 43
2
votes
0 answers

How to correctly mount a Kubernetes secret with subdirectories with Windows containers

I'm trying to mount a Kubernetes secret as a volume into a Pod running a Windows container. I want the mounted secret to contain subdirectories. To do so, I'm using the items feature (see also this StackOverflow question): ... containers: ... …
Fabian Schmied
  • 3,885
  • 3
  • 30
  • 49
2
votes
0 answers

Using admin/non-admin operations at runtime in Windows servercore container

I am using Windows servercore container that has ContainerAdministrator and ContainerUser users. At build-time, its easy to switch between the two users with USER user However, at runtime. I also require to run operations with both elevated and…
Joseph Ho
  • 69
  • 1
  • 1
  • 9
2
votes
3 answers

Can I run scripts from a docker build context without a copy?

I want to build on top of a windows docker container by installing a couple programs. The files total .5 GB and I want to keep the layers as small as possible. I am hoping I can run the setup files from the build-context, and then have the…
Ben Zuill-Smith
  • 3,504
  • 3
  • 25
  • 44
2
votes
1 answer

I've installed Docker on Windows 2019 Server, but I can only interact with it from an administrative shell

I've been following these instructions to get Docker installed on a brand new Windows 2019 Server. As long as I use an administrative account, I can login and run whatever I want: C:\Windows\system32>docker run hello-world Hello from Docker! This…
2
votes
0 answers

Installing visual studio build tools in window container result in error "hcsshim::ImportLayer - failed failed in Win32..."

I'm trying to build a docker file to install VS Build tools 2019. I create the following Dockerfile following this instructions: https://learn.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019 I need to use windows server…
Diego
  • 666
  • 1
  • 8
  • 27
2
votes
1 answer

Access Docker container via DNS name from corporate LAN

I'm looking for a way to access containers that are running on server in our company lan by domain names. By far I only managed to access them by IPs So the setup is. Docker (for windows) is running on server srv1.ourdomain.com (Windows Server…
Mak Sim
  • 2,148
  • 19
  • 30
2
votes
1 answer

Kubernetes nginx-ingress ingress controller CORS handled by application

I am struggling to get NGINX to proxy the CORS headers back and forth from my application. The allowed origins are specified by my ASP.NET Web Application and I would like to proxy these headers back to the client. The application runnning outside…
Gerard Wilkinson
  • 1,512
  • 14
  • 33
2
votes
1 answer

Can I change the date and time in a Windows Docker Container?

I am trying to test a software that exports a file in certain periods of time. I thought of using a docker container to give the desired time and not use system time. The thing is that I am lacking permissions to change the containers time with the…
Manolis
  • 21
  • 1
2
votes
2 answers

Error trying to install Oracle database on Docker Windows container

I need to create a Docker Windows container with an Oracle database 18c on it. I followed this tutorial from Oracle (page 19 to 26) : https://www.oracle.com/technetwork/topics/dotnet/tech-info/oow18windowscontainers-5212844.pdf When I execute the…
Sultaker
  • 21
  • 3
2
votes
0 answers

How to run python flask api on Docker windows container?

I have python flask code which i want to run in windows container. The OS that i'm using is windows 10. My application runs well, But how can i dockerize my application? from flask import Flask app = Flask(__name__) @app.route('/') def…
Code run
  • 165
  • 9
2
votes
3 answers

no matching manifest for windows/amd64 10.0.16299 in the manifest list entries error on pulling hello-world image

I've installed docker on windows 10 and configured for windows container. I'm not able to switch to linux container. it is throwing some exception. When I pull hello-world image it is giving "no matching manifest for windows/amd64 10.0.16299 in the…
Mohan
  • 907
  • 5
  • 22
  • 45
2
votes
1 answer

React or Angular SPA in Visual Studio 2019 Docker Compose Problem

I am using ASP.NET Core 3 with Angular and Docker Windows Container. I followed as below: https://learn.microsoft.com/en-us/visualstudio/containers/container-tools-react?view=vs-2019#modify-the-dockerfile-windows-containers I have created docker…