docker-for-windows

Docker port mapping is not working on windows 10

吃可爱长大的小学妹 提交于 2020-08-02 17:46:41
问题 I am new to docker. I am trying to get a simple node app running on docker. However I am facing an issue with the docker port publish. Docker version - 18.03.0-ce, build 0520e24302 My simple app code: 'use strict'; const express = require('express'); // Constants const PORT = 8081; const HOST = '0.0.0.0'; // App const app = express(); app.get('/', (req, res) => { res.send('Hello world\n'); }); app.listen(PORT, HOST); console.log(`Running on http://${HOST}:${PORT}`); My docker file: FROM node

unable to run a mongoDb container in docker for windows using linux file system

[亡魂溺海] 提交于 2020-07-23 10:22:25
问题 I am trying to run a mongo db container in windows with a volume mapping to a windows folder. I have followed the answer by babak in this question. The folder maps properly, but it creates lots of files named WiredTiger.wt.1 where the number at the end keeps incrementing. I get the following lines in the log: 2020-06-12T12:49:11.431+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.13233 2020-06-12T12:49:11.433+0000 E STORAGE

unable to run a mongoDb container in docker for windows using linux file system

自古美人都是妖i 提交于 2020-07-23 10:20:19
问题 I am trying to run a mongo db container in windows with a volume mapping to a windows folder. I have followed the answer by babak in this question. The folder maps properly, but it creates lots of files named WiredTiger.wt.1 where the number at the end keeps incrementing. I get the following lines in the log: 2020-06-12T12:49:11.431+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.13233 2020-06-12T12:49:11.433+0000 E STORAGE

Is there a way to connect through remote desktop to a running Windows Server container?

不羁的心 提交于 2020-07-16 16:35:33
问题 I want to run an old .NET application in a docker windows server container (https://hub.docker.com/r/microsoft/windowsservercore/). Everything would be easy if this application didn't require an UI. Its UI does a lot of stuff and this stuff cannot be done through command line or other API. Basically, the perfect thing would be to reach this running container through RDP. From my understanding, it is nothing more than a service (TermService) running on a certain TCP port (3389 being the

Setup git via windows docker file

时间秒杀一切 提交于 2020-07-16 04:42:30
问题 I write Dockerfile which is based on windowsnanoserver. I need to add to this image git. In order to achieve it I did the following: RUN Invoke-WebRequest 'https://github.com/git-for-windows/git/releases/download/v2.12.2.windows.2/Git-2.12.2.2-64-bit.exe' RUN Invoke-Expression "c:\Git-2.12.2.2-64-bit.exe" But when I execute this lines via docker build, I receive following error message: Invoke-Expression : The term 'c:\Git-2.12.2.2-64-bit.exe' is not recognized as the name of a cmdlet,

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"

Dockerize ASP Classic on IIS

六月ゝ 毕业季﹏ 提交于 2020-07-04 05:45:28
问题 Microsoft has been investing in running docker on windows with Docker Desktop for Windows . Is it possible to run a legacy ASP Classic application on IIS through Docker? How? https://hub.docker.com/r/microsoft/iis/ 回答1: I finally got this all working. It was a lot more complex than running a simple Dockerfile, as it was a site that was originally developed in 2002. There were modules that had to be downloaded and installed, web.config sections that needed to be unlocked, and ODBC data

Docker - The framework microsoft.AspNetCore.App, version '3.1'0 was not found on build

妖精的绣舞 提交于 2020-06-16 02:14:43
问题 I'm attempting to learn about docker and how to containerize a .NET core Web app. I've been following the tutorial below and have made good progress except when I actually run my project. https://devblogs.microsoft.com/premier-developer/running-a-net-core-web-application-in-docker-container-using-docker-desktop-for-windows/ I built a .NET Core app in visual studio and am using .NET Core 3.1 and I (think) have verified all the correct .NET core versions are installed, but docker seems to think

Docker - The framework microsoft.AspNetCore.App, version '3.1'0 was not found on build

淺唱寂寞╮ 提交于 2020-06-16 02:13:08
问题 I'm attempting to learn about docker and how to containerize a .NET core Web app. I've been following the tutorial below and have made good progress except when I actually run my project. https://devblogs.microsoft.com/premier-developer/running-a-net-core-web-application-in-docker-container-using-docker-desktop-for-windows/ I built a .NET Core app in visual studio and am using .NET Core 3.1 and I (think) have verified all the correct .NET core versions are installed, but docker seems to think

Windows containers have no internet access, but Linux containers do - with VPN-Client active on host

感情迁移 提交于 2020-06-12 15:39:23
问题 I have a Stonesoft VPN-Client and Docker-for-Windows installed on my host machine. My Windows containers seem to fail to resolve any host (even www.google.com). My Linux containers however work perfectly fine. When I disable the VPN Adapter in my network adapter list, the windows containers can access the internet again. But I need them to work with VPN active. So I researched for quite a while and tried to following: Check the adapter priorities in powershell: Get-NetIPInterface