windows-container

Best option to access network share in docker windows container with Docker Compose

不问归期 提交于 2021-02-11 15:02:28
问题 I am new to docker, so please bear with my naive questions. We are trying to host a dot net application in a Windows container. We were successful in hosting the application in the container. However, the application is accessing the network share like \\machinename\abc. We tried to create a volume of type "NFS" but looks like that does not work well in Windows container(How to directly mount NFS share/volume in container using docker compose v3). volumes: example: driver: local driver_opts:

Docker container IP address from .net project

房东的猫 提交于 2021-01-05 07:41:38
问题 This seemingly simple task turns out very difficult. I am trying to get docker container's IP from .net project, in my case using c#. What I have tried so far (This returns docker engine's IP (DockerNAT), not the container's IP): Dns.GetHostEntry(name).AddressList.FirstOrDefault(x => x.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork); If I use ipconfig, the list does not contain the container's IP address, which you can find using docker network inspect network_name (Below list

Docker container IP address from .net project

≯℡__Kan透↙ 提交于 2021-01-05 07:41:16
问题 This seemingly simple task turns out very difficult. I am trying to get docker container's IP from .net project, in my case using c#. What I have tried so far (This returns docker engine's IP (DockerNAT), not the container's IP): Dns.GetHostEntry(name).AddressList.FirstOrDefault(x => x.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork); If I use ipconfig, the list does not contain the container's IP address, which you can find using docker network inspect network_name (Below list

Add or copy folder to windows docker container

一世执手 提交于 2020-07-18 21:02:57
问题 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 (x86)\Microsoft Visual Studio\2019\buildtools\MSBuild\Microsoft\VC I get the error: Step 4/6 : ADD VC C:\Program Files (x86)\Microsoft Visual Studio\2019\buildtools\MSBuild\Microsoft\VC ADD failed: CreateFile \\?\C:\ProgramData\Docker\tmp\docker-builder462071631

Not able to access internet inside docker windows container

夙愿已清 提交于 2020-07-04 19:01:41
问题 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 google.com Invoke-WebRequest : The remote name could not be resolved: 'www.google.com' At line:1 char:73 I am working on a corporate network and I tried setting proxy using RUN netsh winhttp set proxy proxy-server="http://proxy.com:80" bypass-list="*.xyz.com"

Deploy traefik with docker stack on Windows Server 2019

二次信任 提交于 2020-04-07 08:04:51
问题 I want to run traefik on a docker swarm cluster powered by Windows Server 2019. It works while using docker network create and docker service create commands directly. But a seemingly identical compose file does not work. Any help is appreciated. PowerShell commands: # create network docker network create proxy --driver overlay --subnet 11.0.0.0/24 --gateway 11.0.0.1 # start traefik docker service create ` --name traefik ` --constraint node.role==manager ` --publish 80:80 ` --publish 8080

Deploy traefik with docker stack on Windows Server 2019

点点圈 提交于 2020-04-07 08:03:41
问题 I want to run traefik on a docker swarm cluster powered by Windows Server 2019. It works while using docker network create and docker service create commands directly. But a seemingly identical compose file does not work. Any help is appreciated. PowerShell commands: # create network docker network create proxy --driver overlay --subnet 11.0.0.0/24 --gateway 11.0.0.1 # start traefik docker service create ` --name traefik ` --constraint node.role==manager ` --publish 80:80 ` --publish 8080

How to add Fonts to Windows Docker container/image?

荒凉一梦 提交于 2020-02-06 02:41:31
问题 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 facing one issue. This application sends an email with RDLC reports. But the reports I am getting in the mail have different fonts than the report I am getting previously(without docker). I found that the base docker image mcr.microsoft.com/dotnet

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

拈花ヽ惹草 提交于 2020-01-13 07:46: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 commands: docker pull microsoft/dotnet-framework docker run -it microsoft/dotnet-framework cmd In a second terminal window, I executed the command: docker cp app container_id:/ and received this error message: Error response from daemon: filesystem operations

Windows container fails to reach Azure File Storage

假如想象 提交于 2020-01-07 04:20:13
问题 I have a c# web application running on IIS in a windows server core container. In the dockerfile I create a new user 'myUser' without password. I add the credentials to my Azure File store in the Dockerfile as well: USER myUser RUN powershell "cmdkey /add:mystore.file.core.windows.net /user:AZURE\mystore /pass:XXXXXXXXXXXXXXXXXXXXXXXXXXXXX==" I add a new application pool Identity using 'myUser', and use that application pool for my application. When I start the container and connect using