docker-desktop

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

久未见 提交于 2019-12-04 02:14:04
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.0_91 RUN setx PATH %PATH%;%JAVA_HOME%\bin CMD [ "java.exe" ] I create the image from this docker file:

Can I run Windows containers on Docker Desktop for Mac?

a 夏天 提交于 2019-12-03 11:50:43
I want to be able to run Windows Docker Containers on my Mac, it seems this was sort of supported using Docker Toolbox How can I run a docker windows container on osx? But it seems that this is now deprecated and we should be using Docker Desktop now. Docker Desktop has a better and New Hypervisor called HyperKit instead of Virtual Box https://docs.docker.com/docker-for-mac/docker-toolbox/ Docker toolbox allowed starting Windows Containers using VirtualBox, so not sure if that mean's that this is still possible? I have found a reference to putting Docker Desktop into "Windows Container Mode"

docker swarm init could not choose an IP address error

删除回忆录丶 提交于 2019-12-03 10:03:36
Experimenting with Docker Swarm with Docker Desktop for Mac . I tried this: docker-machine create -d virtualbox node-1 docker-machine create -d virtualbox node-2 docker-machine create -d virtualbox node-3 eval $(docker-machine env node-1) docker swarm init \ --secret my-secret \ --auto-accept worker \ --listen-addr $(docker-machine ip node-1):2377 The last command ( docker swarm init ) returns this error: Error response from daemon: could not choose an IP address to advertise since this system has multiple addresses I have no idea what's going on. Anyone have any idea how to debug? Update 2017

What is linux equivalent of “docker.for.mac.host.internal”

旧街凉风 提交于 2019-12-03 05:45:59
问题 On Mac and Windows it is possible to use docker.for.mac.host.internal (replaces docker.for.mac.localhost ) and docker.for.win.host.internal (replaces docker.for.win.localhost ) host.docker.internal (Docker 18.03+) inside container. Is there one for Linux that will work out of the box without passing env variables or extracting it using various cli commands. 回答1: Depends what you're trying to do. If you're running with --net=host , localhost should work fine. If you're using default networking

Can I mix linux-based and windows-based containers in same docker engine host?

左心房为你撑大大i 提交于 2019-12-01 18:07:17
问题 I'm using Docker Desktop for Windows with the new feature of Windows Containers now Windows-based containers are possible but it raised this question? Can I mix linux-based and windows-based images in same docker engine host? If yes, are going to work all network features? Is this independent of the host OS for the user? 回答1: No you can't. You will need a Linux to launch Linux containers and a Windows Server 2016 to launch Windows containers I said in Run normal Win32 applications in Docker

Connect docker container to local workbench MySQL DB

好久不见. 提交于 2019-11-30 15:35:56
问题 HI I have my web app running on my local machine and connected to Mysql workbench , I am now trying to dockerize the webapp. I can't seem to get it to connect to the DB on my local dev machine (I am running Docker Desktop for Windows ), can anyone tell me how I would go about this? Here is what I have so far. `docker run -it -e "CATALINA_OPTS=-Dspring.profiles.active=dev -DPARAM1=DEV" -p 8080:8080 -p 8005:8005 -p 8009:8009 -p 3306:3306 --add-host=docker:192.168.1.7 -v C:\myapp\trunk\target

Connect docker container to local workbench MySQL DB

*爱你&永不变心* 提交于 2019-11-30 14:36:32
HI I have my web app running on my local machine and connected to Mysql workbench , I am now trying to dockerize the webapp. I can't seem to get it to connect to the DB on my local dev machine (I am running Docker Desktop for Windows ), can anyone tell me how I would go about this? Here is what I have so far. `docker run -it -e "CATALINA_OPTS=-Dspring.profiles.active=dev -DPARAM1=DEV" -p 8080:8080 -p 8005:8005 -p 8009:8009 -p 3306:3306 --add-host=docker:192.168.1.7 -v C:\myapp\trunk\target\myapp.war:/usr/local/tomcat/webapps/myapp.war --name waitapp tomcat:8.0.38-jre8` after a few second, I

Docker windows container memory limit

做~自己de王妃 提交于 2019-11-28 20:39:54
Does docker windows containers, with Docker Desktop for Windows , have default memory limit? I have an application that was crashing when I run it in the container, but when I tried to specify --memory 2048mb parameter to the docker run command it seems to run fine. At least in the scenario where it was crashing before. This gives me impression that there is default memory limit, but I could not find it in the documentation. So my question is there memory limit and if it is where it is documented? deafsheep According to talks on Docker for windows Github issues ( https://github.com/moby/moby

Docker windows container memory limit

一笑奈何 提交于 2019-11-27 20:20:19
问题 Does docker windows containers, with Docker Desktop for Windows , have default memory limit? I have an application that was crashing when I run it in the container, but when I tried to specify --memory 2048mb parameter to the docker run command it seems to run fine. At least in the scenario where it was crashing before. This gives me impression that there is default memory limit, but I could not find it in the documentation. So my question is there memory limit and if it is where it is

Can Windows Containers be hosted on linux?

孤人 提交于 2019-11-26 21:19:06
Is it possible to run Windows Containers on Linux ? The scenario is based on an app written in the .NET (old net) and the Linux user that wants to run this with Docker to provide a net462 written API on the localhost . I am using beta version from Docker Desktop for Windows If no, then why can Windows run Linux containers and not vice-versa? EDIT: As some time has passed and this question is a popular one. I'd like to add one note here that the workaround is to use the new netstandard. It allowed me to pack 4.6.2 framework into new library. Update3: 06.2019 Some of the comments says that the