docker-for-windows

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

What is docker image location on Windows 10

南楼画角 提交于 2019-11-30 12:44:32
问题 I am having Windows 10 Home operating system. I have installed Docker toolbox. I have created docker image of my .net core application by using following command. $ docker build -t helloWorld:core . Now I want to ship this image, to other machine. But I am not getting image file. Can someone please tell me, where my image will get saved? Or is there any way, to specify docker image path in docker build command. 回答1: On Windows 10, right click on the docker icon in the system tray (right hand

What is docker image location on Windows 10

六月ゝ 毕业季﹏ 提交于 2019-11-30 06:09:55
I am having Windows 10 Home operating system. I have installed Docker toolbox. I have created docker image of my .net core application by using following command. $ docker build -t helloWorld:core . Now I want to ship this image, to other machine. But I am not getting image file. Can someone please tell me, where my image will get saved? Or is there any way, to specify docker image path in docker build command. On Windows 10, right click on the docker icon in the system tray (right hand side of task bar) and choose Settings... In the Advanced pane, you'll see something like: By using the

Configuring Dockerfile for an ASP.NET Core 2.1 Angular Project

点点圈 提交于 2019-11-29 21:26:22
问题 I'm a complete newbie on Docker and currently trying to create an ASP.NET Core 2.1 with Angular project. I'm using a Linux Container on Docker for Windows and my IDE is VS2017 community edition. Currently, I'm receiving this error: [1] Ensure that 'npm' is installed and can be found in one of the PATH directories. Current PATH enviroment variable is: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Make sure the executable is in one of those directories, or update your PATH. I

localhost not working docker windows 10

北城余情 提交于 2019-11-29 07:32:54
I am using VS2017 docker support. VS created DockerFile for me and when I build docker-compose file, it creates the container and runs the app on 172.x.x.x IP address. But I want to run my application on localhost. I did many things but nothing worked. Followed the docker docs as a starter and building microsoft sample app . The second link is working perfectly but I get HTTP Error 404 when tried the first link approach. Any help is appreciated. In order to access the example posted on Docker Docs, that you pointed out as not working, follow the below steps, 1 - List all the running docker

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 cannot start on windows

谁说我不能喝 提交于 2019-11-28 16:49:28
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 indicate that the docker daemon is not running. Running the diagnostics produces the following: C:

localhost not working docker windows 10

半城伤御伤魂 提交于 2019-11-28 01:04:46
问题 I am using VS2017 docker support. VS created DockerFile for me and when I build docker-compose file, it creates the container and runs the app on 172.x.x.x IP address. But I want to run my application on localhost. I did many things but nothing worked. Followed the docker docs as a starter and building microsoft sample app . The second link is working perfectly but I get HTTP Error 404 when tried the first link approach. Any help is appreciated. 回答1: In order to access the example posted on

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

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

只谈情不闲聊 提交于 2019-11-27 16:40:55
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 do that - can someone advise? You don't actually need to share the C drive but only reinstall (or