docker-for-windows

docker :manifest for microsoft/windowsservercore:latest not found

萝らか妹 提交于 2019-12-23 03:12:35
问题 I want to run IIS in my Docker container But when I write this command : docker pull microsoft/windowsservercore I get this error : Using default tag: latest Error response from daemon: manifest for microsoft/windowsservercore:latest not found 回答1: Microsoft has deprecated the latest tag https://techcommunity.microsoft.com/t5/Containers/Removing-the-latest-Tag-An-Update-on-MCR/ba-p/393045 the official image with latest tag is docker run mcr.microsoft.com/windows/servercore:ltsc2019 来源: https:

Dockerfile COPY from a Windows file system to a docker container

二次信任 提交于 2019-12-22 05:14:45
问题 I have a simple Dockerfile : FROM php:7.1-apache LABEL maintainer="rburton@agsource.com" COPY C:/Users/rburton/code/MyAgsourceAPI /var/www It is the last line that is giving me problems. I am copying from a Windows structure to a docker container (Linux I assume). When I build this image I get: ... Step 3/3 : COPY C:/Users/rburton/code/MyAgsourceAPI /var/www COPY failed: stat /var/lib/docker/tmp/dockerbuilder720374851/C:/Users/rburton/code/MyAgsourceAPI: no such file or directory First,

Connect to SQL Server in local machine (host) from docker using host.docker.internal

旧巷老猫 提交于 2019-12-22 01:18:11
问题 I'm trying to connect to my SQL Server instance running in my local computer using host.docker.internal (as recommended in https://docs.docker.com/docker-for-windows/networking/#use-cases-and-workarounds) The host.docker.internal is successfully resolved to an IP, and it's ping-able And I've opened up the port 1433 in my firewall configuration Error message Connection refused 192.168.65.2:1433 My connection string Data Source=host.docker.internal,1433;Initial Catalog=;Persist Security Info

Docker Desktop for Windows: cannot access service on exposed port in windows container mode

浪子不回头ぞ 提交于 2019-12-21 07:30:08
问题 I am using the following Dockerfiles to create a container running Jenkins in a windows container on Windows 10 desktop running Docker Desktop for Windows version 17.03 FROM microsoft/windowsservercore RUN powershell -Command wget 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=210185' -Outfile 'C:\jreinstaller.exe' ; Start-Process -filepath C:\jreinstaller.exe -passthru -wait -argumentlist "/s,INSTALLDIR=c:\Java\jre1.8.0_91" ; del C:\jreinstaller.exe ENV JAVA_HOME c:\\Java\\jre1.8

How to connect to docker VM (MobyLinux) from windows shell?

↘锁芯ラ 提交于 2019-12-20 08:48:07
问题 Is there away to log into host VM's shell, similarly to how can we easily enter into running containers bash? docker exec -it bash I accidentally broke one container's crucial file, so that it couldn't start. Unfortunately, that container stored it's data inside. The result was that whenever I tried to run it, it couldn't start. The only solutions I saw were about navigating to host docker daemon's files. However, I'm running docker VM on windows, and I cannot access the files inside VM

Expose container port to Host using Docker for Windows in Windows 10

假如想象 提交于 2019-12-18 19:19:55
问题 I've reading docker API and trying to create a simple container and expose 1 port. In my example, I have an application that listen on TCP port 9595 inside the container and I want to access it from outside world (i.e. the host of the container) on port 9090 . When creating the container I have "ExposedPorts": { "9595/tcp: {}" } and the "PortBindings": { "9595/tcp": [{ "HostPort": "9090" }] } . So, if I access from the Host machine http://container_internal_ip:9595 it works! However, when I

selenium inside windows docker container fails with ff/chrome “session deleted because of page crash”

最后都变了- 提交于 2019-12-18 12:53:11
问题 DOCKER WITH SELENIUM AND ASP.NET 4.5 MVC What am I trying to do? Attempting to have a docker image that does following. Yes, I'm aware there are other ways to accomplish the end game here but I have a specific request on this. Runs an ASP.NET MVC 4.5 web app Has selenium driver via a c# console exe testing the code Current status - when test is run in regular Windows 10 or Windows 2016 it runs fine. When the test is run in a Windows docker container it blows out with " session deleted because

docker cannot start on windows

不想你离开。 提交于 2019-12-18 10:07:39
问题 Executing docker version returns the following results. C:\Projects> docker version Client: Version: 1.13.0-dev API version: 1.25 Go version: go1.7.3 Git commit: d8d3314 Built: Tue Nov 1 03:05:34 2016 OS/Arch: windows/amd64 error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/version: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also

Settings to Windows Firewall to allow Docker for Windows to share drive

只谈情不闲聊 提交于 2019-12-17 14:59:12
问题 Windows Firewall is blocking my attempt to allows Docker for Windows to share C: on windows 10 machine. Works fine when Windows Firewall off. When its on I get A firewall is blocking file Sharing between Windows and the containers. See documentation for more info. The documentation says You do not need to open port 445 on any other network. By default, allow connections to 10.0.75.1 port 445 (the Windows host) from 10.0.75.2 (the virtual machine). I am "googled out" on trying to find how to

Docker for windows local registry push error

微笑、不失礼 提交于 2019-12-13 20:43:37
问题 Trying to push image to local docker registry ends with HTTP status: 500 Internal Server Error . In registry logs I see err.detail="filesystem: truncate /var/lib/registry/docker/registry/v2/repositories/my-ubuntu/_uploads/25ca078f-2d29-4504-907a-87fa6745c6f6/startedat: permission denied" I'm running Docker for windows (Docker version 18.06.1-ce, build e68fc7a), experimental features enabled, OS Windows 10 version 1803. Steps I'm doing docker run --platform=linux -d -p 5000:5000 --restart