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
5
votes
0 answers

Containerd ctr command for pulling images gives error

I am new to containerd and I am trying to run the windows containers using containerd. After installing containerd, I just tried to pull the image from registry and I got below issue. The issue i am getting is from the container runtime…
Vignesh
  • 101
  • 1
  • 7
5
votes
2 answers

How to use wsl in docker (not the way around)

I want to use WSL in a a windows container. I want my shell to be bash.exe (from the Wsl feature) IN the dockerfile (i do NOT want msys2/relatives, but WSL 1) I tried FROM mcr.microsoft.com/windows:1903 RUN dism.exe /online /enable-feature…
131
  • 3,071
  • 31
  • 32
5
votes
1 answer

Change hostname from within a Windows container

I have to create a Windows container image with our application installed to it. Our application uses hostnames in several places during the installation. The docker build command does not have an option to pass the hostname - so we are currently…
Sathish M
  • 51
  • 1
5
votes
3 answers

WixToolset cannot be installed inside a windows container having base image of windows/servercore

I am trying to install WixToolset 3.11.1 inside a running windows container based on image mcr.microsoft.com/windows/servercore. I am using the chocolatey command choco install wixtoolset but the .NET 3.5 fails to install and the installation is…
Takhi
  • 335
  • 1
  • 4
  • 18
5
votes
0 answers

Resolve docker windows container name from host

I'm trying to resolve a docker container address from the host. Windows host. Windows container. I've reviewed number of similar questions: How do I resolve hostnames to Docker containers from the host? Docker 1.10 access a container by it's…
AQuirky
  • 4,691
  • 2
  • 32
  • 51
5
votes
0 answers

Packet capture inside windows docker container

Is it possible to capture tcp packets inside a windows docker container? (using an image ultimately based on microsoft/windowsservercore) netsh trace start fails with The inbox capture driver could not be started…
Duncan
  • 1,183
  • 2
  • 12
  • 22
4
votes
2 answers

Windows Container PreStop Hook - Unable to Move Log Files to Volume

Trying to configure a PreStop Hook which should run a script in a windows container. Observed that the prestop hook is not executing the script in OpenShift Windows Container. This is a Powershell script which moves logs to volume Tried specifying…
user804401
  • 1,990
  • 9
  • 38
  • 71
4
votes
0 answers

DllImport doesnt works on docker windows container

I have .net core console application which calls a cpp dll methods using DllImport. this cpp dll is compiled in windows and is not compatible with linux. So we decided to dockerize this console application in a Windows Container docker…
RezaNoei
  • 1,266
  • 1
  • 8
  • 24
4
votes
1 answer

Installing Print-Server on windows docker contaiener container fails

I am running a fresh mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019 The first thing I try to do is install Print-Server but gives me an error (It is the first time I am installing a windows feature with…
Ovidiu Buligan
  • 2,784
  • 1
  • 28
  • 37
4
votes
0 answers

Docker Swarm, Windows Containers, ingress network (Routing Mesh) on Windows Server 2019

I want to build docker swarm cluster on windows. To do this I choose Windows Server 2019 in 1809 Version. I work on my local machine and using Vagrant box vm.box=StefanScherer/windows_2019 I created enviroment for developing purposes. Set…
4
votes
1 answer

Add or copy folder to windows docker container

I want to copy a folder to a windows container specific directory. I am not able to add it. I tried ADD VC C:\TEMP\VC This works and put my VC folder into windows container folder C:\TEMP\VC. But when I try: ADD VC C:\Program Files…
Nilesh Solanki
  • 336
  • 4
  • 19
4
votes
0 answers

'Cannot open program database' problem in Windows docker container

I use ninja as the build tool of cmake, ninja build parallelly. When build in the physical machine, it compiles without any problem, but in a Windows docker container, it reports: fatal error C1041: cannot open program database 'blabla.pdb'; if…
Xiaofeng
  • 532
  • 7
  • 22
4
votes
1 answer

Using named pipe in windows containers (same host)

I want to have 2 windows containers - running on same host (using windows 10 client machine and docker for windows) talking via a named pipe (not anonymous pipes). However, I couldn't make it work. My named pipe server class is here in GitHub. The…
Moim
  • 486
  • 1
  • 8
  • 23
4
votes
1 answer

Installing ASP.Net 3.5 in docker container

I'm trying to install ASP.Net 3.5 in my windows docker container using the below command DISM /Online /Enable-Feature /FeatureName:NetFx3 /All I'm getting the below error Deployment Image Servicing and Management tool Version: 10.0.17763.1 Image…
Mathiyazhagan
  • 1,389
  • 3
  • 13
  • 37
4
votes
2 answers

Docker build failed for InvokeWebrequest

I have a docker file to install sql server on windows server core. the below command fails with error Docker Command RUN Invoke-WebRequest -Uri $env:box -OutFile SQL.box ; Invoke-WebRequest -Uri $env:exe -OutFile SQL.exe ; Start-Process…
Mathiyazhagan
  • 1,389
  • 3
  • 13
  • 37
1 2
3
23 24