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
3
votes
1 answer

VS Build Tools 2019 Error in Windows Container

Following this tutorial, if I remove the installPath and use the default MsBuild Visual Studio location, I get the following error. Error: Visual Studio Build Tools 2019 (2) is already installed I built a similar container a few weeks back and…
3
votes
1 answer

Change compose file generated by Visual Studio Docker Tools

I have an ASP.NET Core 2 project that uses the UseWebpackDevMiddleware from Microsoft.AspNetCore.SpaServices.Webpack. Unfortunately the aspnet webpack node plugin is complaining about Error: ENOENT: no such file or directory, lstat…
Swimburger
  • 6,681
  • 6
  • 36
  • 63
3
votes
1 answer

Windows Container with Sidecar for data

I am trying to setup a windows nanoserver container as a sidecar container holding the certs that I use for SSL. Because the SSL cert that I need changes in each environment, I need to be able to change the sidecar container (i.e. dev-cert…
Mike
  • 1,718
  • 3
  • 30
  • 58
3
votes
0 answers

Variable handling during windows docker build

How can i define variables in the Dockerfile for a windows image so they are accessible in subsequent RUN statements? My test Dockerfile looks like this FROM microsoft/windowsservercore SHELL ["powershell", "-Command"] ARG viaArg=value ENV…
BNT
  • 936
  • 10
  • 27
3
votes
2 answers

Unable to install windowsServerCore Container Image

I am trying to install windowsServercore images on my WIndows 2016 server using below command. Install-containerImage WindowsServerCore while running it got below error message. Install-ContainerOSImage : The term 'Install-ContainerOSImage' is not…
user1550159
  • 1,197
  • 3
  • 19
  • 36
3
votes
1 answer

ADD command with network path in Windows Containers Dockerfiles

I'm creating some Windows Container images that I need but the source file I want to ADD are in a network share \\myserver\myshare\here. I've tried in any possible way but I always get the message error The system cannot find the path specified. Is…
sebagomez
  • 9,501
  • 7
  • 51
  • 89
3
votes
1 answer

Dockerfile build using complex powershell script on windows container

I am trying to build a docker image with a dockerfile that runs powershell. The embedded powershell script has already been tested outside of the dockerfile, but when running the dockerfile it has errors. From docker file: RUN powershell…
3
votes
1 answer

Docker IIS Network Connection to External Network

Completely new to Dockers here. I have a very simple .NET 45 application, that is built on ServiceStack framework. They are mainly APIs web services. Docker image is built well, container is deployed well and running, no issues. I am using Windows…
CozyAzure
  • 8,280
  • 7
  • 34
  • 52
3
votes
2 answers

Windows containers causes Azure SQL connections to fail

I have created a Dockerfile for my .NET program. The program runs fine on my desktop and on an Windows Server 2016 (Azure VM) without Docker. When I try to run it inside as a container (based on microsoft/windowsservercore), then I often get…
Ramon de Klein
  • 5,172
  • 2
  • 41
  • 64
2
votes
1 answer

How to retrieve the memory usage of a Windows container?

Under Linux it's possible to read the control file memory.usage_in_bytes for Control Group v1 or memory.current for Control Group v2. How to get the memory usage of a Windows container? According to the Windows resource management Kubernetes docs,…
Christian Ammer
  • 7,464
  • 6
  • 51
  • 108
2
votes
1 answer

running exe in windows server core on docker windows container

i run dockerfile #servercore its mine tag FROM servercore COPY ./prog./work/prog WORKDIR /work CMD ["cmd.exe", "/c", "start /b C:\\work\\prog\\prog.exe"] then inside of container i type tasklist and see in this case my program doesn`t work Also…
2
votes
1 answer

.exe program was launched in windowsscore on docker, but it doesn’t work correctly. After starting this exe in cmd in container all is good. Why?

i have docker-compose that run script for changing IP and run .exe programm in servercore on docker container. But i dont see result of this exe . (ip changes). Also i`m tryign to run the exe in cmd inside of container, in this case everything is…
2
votes
1 answer

ContainerD nodes in GKE based on Windows

Is there a tutorial, manual, or instructions on how to get started using ContainerD as a primary tool to build images for K8S (on Windows) since Google Kubernetes is abandoning Docker-based Windows nodes and recommending switching to ContainerD…
2
votes
1 answer

Connect windows containers to docker host network

Context, I'm currently dockerizing an application in windows containers, the application will connect to a Sql Server database from outside the container, normally working with linux containers I could use host driver, but since that is not…
2
votes
1 answer

Docker desktop stopped in Windows container mode

I am using Docker Desktop latest version (4.7) on Windows 10 Pro machine. Everything was working fine before my first restart after installing docker and pulling a container in Windows Container mode which ran successfully as well. But now whenever…
umar
  • 551
  • 1
  • 6
  • 13