docker-desktop

How to get IP Address of Docker Desktop VM?

风格不统一 提交于 2020-05-17 08:10:53
问题 I'm in a team where some of us use docker toolbox and some user docker desktop. We're writing an application that needs to communicate to a docker container in development. On docker toolbox, I know the docker-machine env command sets the docker host environment variable and I can use that to get the ip of the virtual machine that's running the docker engine. From there I just access the exposed ports. What's the equivalent way to get that information on docker desktop? (I do not have a

How to get IP Address of Docker Desktop VM?

一曲冷凌霜 提交于 2020-05-17 08:10:14
问题 I'm in a team where some of us use docker toolbox and some user docker desktop. We're writing an application that needs to communicate to a docker container in development. On docker toolbox, I know the docker-machine env command sets the docker host environment variable and I can use that to get the ip of the virtual machine that's running the docker engine. From there I just access the exposed ports. What's the equivalent way to get that information on docker desktop? (I do not have a

Docker for Windows: Accessing named volume mounts

你离开我真会死。 提交于 2020-05-16 06:45:15
问题 Please note that this is not a duplicate of Locating data volumes in Docker Desktop (Windows) as back in 2017 the inner workings of docker on windows were quite different - e.g. docker volume inspect output is quite different nowadays. I have trouble accessing data mounted to containers in docker for windows via named volume mounts. docker inspect [vol-id] [ { "CreatedAt": "2019-04-02T11:58:14Z", "Driver": "local", "Labels": { "com.docker.compose.project": "foo", "com.docker.compose.version":

Docker for Windows: Accessing named volume mounts

倾然丶 夕夏残阳落幕 提交于 2020-05-16 06:45:12
问题 Please note that this is not a duplicate of Locating data volumes in Docker Desktop (Windows) as back in 2017 the inner workings of docker on windows were quite different - e.g. docker volume inspect output is quite different nowadays. I have trouble accessing data mounted to containers in docker for windows via named volume mounts. docker inspect [vol-id] [ { "CreatedAt": "2019-04-02T11:58:14Z", "Driver": "local", "Labels": { "com.docker.compose.project": "foo", "com.docker.compose.version":

Connect with ssh to docker daemon on Windows

こ雲淡風輕ζ 提交于 2020-04-08 05:39:10
问题 I installed Docker Desktop for Windows on Windows 10 with https://docs.docker.com/docker-for-windows/install/#install-docker-for-windows. It not uses VirtualBox and default VM to host docker. I am able to run containers but how I connect to a docker with ssh? docker-machine ls does not show my docker host. Tried to connect to docker@10.0.75.1 but it requires password. And tcuser that used for boot2docker VM not matching: ssh docker@10.0.75.1 Could not create directory '/home/stan/.ssh'. The

Connect with ssh to docker daemon on Windows

只谈情不闲聊 提交于 2020-04-08 05:38:37
问题 I installed Docker Desktop for Windows on Windows 10 with https://docs.docker.com/docker-for-windows/install/#install-docker-for-windows. It not uses VirtualBox and default VM to host docker. I am able to run containers but how I connect to a docker with ssh? docker-machine ls does not show my docker host. Tried to connect to docker@10.0.75.1 but it requires password. And tcuser that used for boot2docker VM not matching: ssh docker@10.0.75.1 Could not create directory '/home/stan/.ssh'. The

How can I access nginx ingress on my local?

允我心安 提交于 2020-01-25 08:17:49
问题 I can't connect to my app running with nginx ingress (Docker Desktop win 10). The nginx-ingress controller pod is running, the app is healthy, and I have created an ingress. However, when I try to connect to my app on localhost, I get "connection refused". I see this error in the log: [14:13:13.028][VpnKit ][Info ] vpnkit.exe: Connected Ethernet interface f6:16:36:bc:f9:c6 [14:13:13.028][VpnKit ][Info ] vpnkit.exe: UDP interface connected on 10.96.181.150 [14:13:22.320][GoBackendProcess ]

How can I access nginx ingress on my local?

自作多情 提交于 2020-01-25 08:17:06
问题 I can't connect to my app running with nginx ingress (Docker Desktop win 10). The nginx-ingress controller pod is running, the app is healthy, and I have created an ingress. However, when I try to connect to my app on localhost, I get "connection refused". I see this error in the log: [14:13:13.028][VpnKit ][Info ] vpnkit.exe: Connected Ethernet interface f6:16:36:bc:f9:c6 [14:13:13.028][VpnKit ][Info ] vpnkit.exe: UDP interface connected on 10.96.181.150 [14:13:22.320][GoBackendProcess ]

Docker desktop kubernetes add node

给你一囗甜甜゛ 提交于 2020-01-24 23:14:11
问题 I running docker desktop with kubernetes option turned on. I have one node called docker-for-dektop. Now i have created a new ubuntu docker container. I want to add this container to my kubernetes cluster. Can be done? how can i do it? 回答1: As far as I'm aware, you cannot add a node to Docker for Desktop with Kubernetes enabled. Docker for Desktop is a single-node Kubernetes or Docker Swarm cluster, you might try using kubernetes-the-hard-way as this explains how to setup a cluster and add

docker swarm init could not choose an IP address error

只谈情不闲聊 提交于 2020-01-01 04:03:09
问题 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