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
398
votes
10 answers

Can Windows containers be hosted on Linux?

Is it possible to run Windows containers on Linux? The scenario is based on an application written in .NET (old net) and the Linux user that wants to run this with Docker needs to provide a net462 written API on the localhost. I am using the beta…
37
votes
8 answers

Appending to PATH in a Windows Docker container

I need to append to the PATH within a Windows Docker container, and I've tried many permutations. ENV PATH=%PATH%;C:\\Foo\\bin ENV PATH=$PATH;C:\\Foo\\bin ENV PATH="%PATH%;C:\Foo\bin" ENV PATH="$PATH;C:\Foo\bin" RUN "set…
macetw
  • 1,640
  • 1
  • 17
  • 26
34
votes
2 answers

Unable to copy to Windows container ('docker cp') on Windows 10

I set up Docker for Windows on my laptop and switched from Linux Containers to Windows Containers in Docker's settings (which prompted a couple of restarts and Windows updates). I pulled an image and ran a container based on it using the…
Web User
  • 7,438
  • 14
  • 64
  • 92
18
votes
3 answers

HNS failed with error : The parameter is incorrect

I am making a docker containerized application using visual studio 2017. When running docker through visual studio first, I got an error that "ERROR: client version 1.22 is too old". This error was resolved by updating docker compose to version…
Khalil
  • 1,047
  • 4
  • 17
  • 34
17
votes
5 answers

Not able to access internet inside docker windows container

I am trying to build an image using docker windows container. Here is my dockerfile FROM mcr.microsoft.com/windows/servercore:ltsc2019 as installer RUN Invoke-WebRequest -URI 'www.google.com' When I run this it is failing to connect to…
Madan Sandiri
  • 400
  • 1
  • 3
  • 11
17
votes
1 answer

running windows Container in Kubernetes over AWS cloud

I installed my existing Kubernetes Cluster (1.8) running in AWS using KOPS. I would like to add Windows Container to the existing cluster but I can not find the right solution! :( I thought of following these given steps given…
16
votes
2 answers

Scale Azure Container Instance

Is it possible to scale an ACI running container? Problem: We have some old-school Cloud Services (.NET Framework v4.7.1) we're migrating to Docker containers, we've successfully got them running and responding in Azure Container Instances now, but…
11
votes
0 answers

postgres in Docker with data directory on named or bind volume works on Windows Server 2019 but not Windows Server 2016

I'm currently trying to run PostgreSQL 10.6.1 in a docker container (Base-Image is mcr.microsoft.com/windows/servercore:ltsc2016) that should be run on Windows Server 2016 Datacenter (Version 1607, Build 14393.2759). Everything runs fine, including…
sven
  • 4,161
  • 32
  • 33
11
votes
1 answer

Disable password policy in Sql Server Docker container

I am trying to run a development db inside the container instead of my local instance. However, in our local dev db versions we use weak passwords (when db is getting deployed to prod the passwords are strong) so when I try to create a server users…
AlexanderM
  • 1,613
  • 4
  • 21
  • 35
10
votes
2 answers

Error response from daemon: Unrecognised volume spec: file '\\.\pipe\docker_engine' cannot be mapped. Only directories can be mapped on this platform

I'm new to the docker. Any help and tips are welcome. Environments: Windows: Windows 10 Pro 21H1 Docker Desktop: 3.4 I can run hello work example without any issues. But seems like I can't use named piped, can't figure out what is the issue. Some…
10
votes
0 answers

Docker Windows container can't resolve host.docker.internal

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…
10
votes
3 answers

docker error in windows container read tcp : wsarecv: An existing connection was forcibly closed by the remote host

i am using the latest version of docker for windows. the linux container goes smoothly but i am getting below problem wsarecv: An existing connection was forcibly closed by the remote host. it occurs for fetching some specific image from repos.…
Kalyan
  • 1,880
  • 11
  • 35
  • 62
10
votes
3 answers

Is it possible for 2 containers inside a Pod to share the same Environment Variables?

Is it possible for an InitContainer to change the environment variables of the application container when running inside the same Pod? Note that I am looking for a detailed answer that describes the technical reasons why this is or isn't possible.…
atomaras
  • 2,468
  • 2
  • 19
  • 28
9
votes
3 answers

"Docker build path not found" in docker support Visual Studio Project

I have C# solution, with 4 projects, 3 being Dlls and 1 is the console application uses those DLLs. I tried to use docker support on visual studio to build my docker image, it fails My dockerfile as below: > FROM…
csamleong
  • 769
  • 1
  • 11
  • 24
8
votes
1 answer

How to run Docker Desktop with Windows Containers on Amazon AWS EC2 Windows (or is this not possible)?

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…
ubienewbie
  • 1,771
  • 17
  • 31
1
2 3
23 24