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
8
votes
2 answers

VS Code error when Attach to Visual Studio Code windows container on local machine

When I right click on a local Windows Docker container in Visual Studio Code > Attach Visual Studio Code, I get the following error. Can Visual Studio Code attach to a Windows container? If so, where can I supply the missing uname/passwd? [2484 ms]…
user1594257
  • 487
  • 1
  • 4
  • 16
8
votes
3 answers

How to keep WIndows Container running?

I need to keep my Windows Container up so I can run further commands on it using docker exec. On Linux, I'd start it to run either sleep infinity, or tail -f /dev/null. Alternatively, I could borrow pause.c from Kubernetes. What does this look like…
user7610
  • 25,267
  • 15
  • 124
  • 150
8
votes
5 answers

Setting TimeZone for a Windows Container

I am trying to set the timezone of a WindowsContainer which is based on the windows nano server 2019 Build 1809. One of the simplest way of doing it for linux containers is to set the TimeZone environment variable as shown below: docker run -e…
8
votes
4 answers

Detect if process executes inside a Windows Container

It's simple. I would like to detect with code if my process is running inside a windows container. There are examples but they are all for linux based containers. I'm looking for something unique and explicit to docker that can be used to make a…
Alex Sarafian
  • 634
  • 6
  • 17
7
votes
1 answer

Unable to display GUI application from Windows container : Windows 2019 Server

I need to use Docker Windows containers for Windows applications to run on it. I build an image with Windows 2019 Server and installed x server for the display like the ubuntu image but it doesn't work . so Is there a way to access a Windows…
7
votes
0 answers

How to run a windows docker container with current host user? - Docker Windows

When I'm running a windows docker container, I want that this container use the same host current user. I want that when I do whoami or echo %username% in the container, I get the same user then in the host. I'm try to do like this: docker run -it…
Amlys
  • 125
  • 1
  • 7
7
votes
2 answers

How to restart a Windows container

I'm trying to run a legacy ASP.Net (.Net 4.7.1) application from a Windows container. One of the requirements is to have the system culture, locale and location set to en-GB. I'm not allowed to touch the code, only the web.config if absolutely…
João Louros
  • 2,752
  • 4
  • 23
  • 30
7
votes
1 answer

What is the use of a pause image in Kubernetes?

It seems that on Windows Kubernetes starts a pause image for each pod that is created. What is the purpose of this pause image? Where can I find more documentation about it?
lanoxx
  • 12,249
  • 13
  • 87
  • 142
7
votes
1 answer

How to add NuGet packages to the Dockerfile build steps?

I have a small .NET Framework 4.6.2 application with a few NuGet package references. On executing: docker build -t myapp . I receive the error: Could not resolve this reference. for each of the referenced NuGet packages. I have tried: Adding RUN…
Wijnand
  • 1,192
  • 4
  • 16
  • 28
6
votes
1 answer

Error response from daemon: hcsshim::CreateComputeSystem: The request is not supported

docker: Error response from daemon: hcsshim::CreateComputeSystem 38d5975c4992c39b5ee8f5a46ad19f45435ff59b18523e3552c53b24ab23f1ca: The request is not supported. (extra info:…
RenceAbi
  • 522
  • 2
  • 11
  • 26
6
votes
2 answers

How to add Fonts to Windows Docker container/image?

I have a console application that is built on .NET Framework v4.8. I am trying to run it in Azure Container Instances(ACI) using the docker image. I have created a docker image locally and pushed it to ACI and it is running successfully. Now I am…
6
votes
0 answers

Enable Remote Desktop in Windows Server Container

I have a Windows Server container and I want to RDP into its desktop environment. It seems that Microsoft has closed the RDP in recent Windows Server Core Containers. I tried to follow up on this tutorial. I can successfully log in with the Remote…
Masoud Rahimi
  • 5,785
  • 15
  • 39
  • 67
6
votes
0 answers

Azure Container Service (ACS) - How can I safely restart a worker node?

I've deployed a Kubernetes cluster using the Azure CLI (az acs create command). The nodes in the cluster are running Windows. I want to shutdown and restart a worker node. I tried kubectl drain to remove the node from the cluster. This works and…
6
votes
1 answer

Why is the official SQL Server Express container only meant for development and testing?

It says here... Intended use: development and testing only. Not supported in production environments Should the production database not be hosted by a container, or is this advice about the Express version, regardless of whether it's in a…
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
6
votes
1 answer

Error running erlang in Windows Container

I'm attempting to get RabbitMQ up and running inside a Windows container but without a whole lot of luck. I've copied into the container the installation directories for RabbitMQ and Erlang but when I attempt to run erl.exe I'm told that…
stimms
  • 42,945
  • 30
  • 96
  • 149
1
2
3
23 24