docker-desktop

Location of Kubernetes config directory with Docker Desktop on Windows

人走茶凉 提交于 2021-02-16 15:18:05
问题 I am running a local Kubernetes cluster through Docker Desktop on Windows. I'm attempting to modify my kube-apiserver config, and all of the information I've found has said to modify /etc/kubernetes/manifests/kube-apiserver.yaml on the master. I haven't been able to find this file, and am not sure what the proper way is to do this. Is there a different process because the cluster is through Docker Desktop? 回答1: Is there a different process because the cluster is through Docker Desktop? You

Migrating existing containers from Hyper-V to WSL2 technology

不羁的心 提交于 2021-02-16 04:37:08
问题 After DockerCon 2020, I enthusiastically downloaded Windows 10 2004 and tried to upgrade Docker Desktop to WSL 2 containers and experiment. I had a few containers, in particular a couple of databases along with their data stored within volumes. Postgres and MS SQL Server in the case. I wouldn't like to lose the data, though it's not critical. I used Docker volumes rather than OS mounts because I have repeatedly seen that using Windows mounts for database data storage is not recommended. When

Migrating existing containers from Hyper-V to WSL2 technology

人盡茶涼 提交于 2021-02-16 04:33:39
问题 After DockerCon 2020, I enthusiastically downloaded Windows 10 2004 and tried to upgrade Docker Desktop to WSL 2 containers and experiment. I had a few containers, in particular a couple of databases along with their data stored within volumes. Postgres and MS SQL Server in the case. I wouldn't like to lose the data, though it's not critical. I used Docker volumes rather than OS mounts because I have repeatedly seen that using Windows mounts for database data storage is not recommended. When

Migrating existing containers from Hyper-V to WSL2 technology

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-16 04:33:34
问题 After DockerCon 2020, I enthusiastically downloaded Windows 10 2004 and tried to upgrade Docker Desktop to WSL 2 containers and experiment. I had a few containers, in particular a couple of databases along with their data stored within volumes. Postgres and MS SQL Server in the case. I wouldn't like to lose the data, though it's not critical. I used Docker volumes rather than OS mounts because I have repeatedly seen that using Windows mounts for database data storage is not recommended. When

What is the “Docker Subnet” used for?

点点圈 提交于 2021-02-08 08:28:41
问题 There is an option in docker-desktop that allow to change the " Docker subnet ". And I don't see this default subnet 192.168.65.0/28 being used anywhere. I tried to docker network inspect on every Docker internal network, checked the docker-desktop WSL2 distro and my Windows host for routes or IPs but I don't see that default subnet being used anywhere (even when setting up a custom one). This does not change the subnet used in docker network inspect bridge or any other one. I'm struggling to

Change “hosts” / “-h” Docker for Windows in daemon.json

半世苍凉 提交于 2021-02-07 02:45:34
问题 I'm trying to change daemon.json on Docker Desktop for Windows (Windows 10 Aniversary latest updates installed) 1.13.0-rc5 so I can change the "hosts": [] setting like this: { "hosts": [ "tcp://0.0.0.0", "http://0.0.0.0" ] } However, after change the settings using the settings app I got this error: Docker daemon failed with message: unable to configure the Docker daemon with file C:\ProgramData\docker\config\daemon.json: the following directives are specified both as a flag and in the

Kubernetes services are not accessible through nodeport with Desktop Docker setup

拜拜、爱过 提交于 2021-02-05 10:56:35
问题 I am using Docker Desktop on windows 10. And I generate kubernetes NodePort Service to access from client web browser (http://10.110.201.24:30008/hello/praveen) but service is not accessible. apiVersion: apps/v1 kind: Deployment metadata: name: my-app spec: selector: matchLabels: run: spring-app replicas: 1 template: metadata: labels: run: spring-app spec: containers: - name: spring-boot image: praveen1233/spring-boot:v1 ports: - containerPort: 80 service apiVersion: v1 kind: Service metadata

Docker Desktop + k8s plus https proxy multiple external ports to pods on http in deployment?

☆樱花仙子☆ 提交于 2021-01-28 09:51:09
问题 I'm trying to do a straight up thing that I would think is simple. I need to have https://localhost:44301, https://localhost:5002, https://localhost:5003 to be listened to in my k8s environment in docker desktop, and be proxied using a pfx file/password that I specify and have it forward by the port to pods listening on specific addresses (could be port 80, doesn't matter) The documentation is mind numbingly complex for what looks like it should be straight forward. I can get the pods running

Docker Desktop + k8s plus https proxy multiple external ports to pods on http in deployment?

落爺英雄遲暮 提交于 2021-01-28 09:42:36
问题 I'm trying to do a straight up thing that I would think is simple. I need to have https://localhost:44301, https://localhost:5002, https://localhost:5003 to be listened to in my k8s environment in docker desktop, and be proxied using a pfx file/password that I specify and have it forward by the port to pods listening on specific addresses (could be port 80, doesn't matter) The documentation is mind numbingly complex for what looks like it should be straight forward. I can get the pods running

How to enable docker remote API in “Docker for Windows”

ε祈祈猫儿з 提交于 2021-01-23 06:31:13
问题 I have Docker Desktop for Windows 1.12.1-stable(build: 7135) installed on my Windows 10 machine. I want to access docker using the remote API through port 4243 . I guess this port is not enabled by default. Do you have any idea how to open it? 回答1: You can edit the configuration for docker daemon. Add a daemon.json file in the following path: %ProgramData%\docker\config The file should contain something like this: { "hosts": ["tcp://0.0.0.0:4243"] } Then restart docker service.(eg Powershell: