docker-for-windows

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

Difference in accessing windows path in volume creation in windows Docker

一曲冷凌霜 提交于 2021-01-29 19:02:58
问题 I have two drives, the local drive (C:) When a volume is mounted using this path it works perfectly fine. ex: docker run --rm -it -v "C:/data":/aug aif . I have an external NAS drive, I map it, and name it as (Z:) I use the command ex: docker run --rm -it -v "Z:/data":/aug aif . Which gives an error that the files are not present in the /aug directory within the container. I am loading data into my software to train deep learning models. So, in case of 1. , the system works fine and the data

'No matching manifest for unknown in the manifest list entries' when pull nanoserver:1903

旧巷老猫 提交于 2021-01-29 08:04:58
问题 I want to pull microsoft-windows-nanoserver for my windows container on windows 10 pro. My environment: Docker Desktop Version: 2.0.0.3 (31259) Channel: stable Sha1: 8858db33c8692b69de9987a5d672798d778735b2 OS Name: Windows 10 Pro Windows Edition: Professional Windows Build Number: 17763 Client: Docker Engine - Community Version: 18.09.2 API version: 1.39 Go version:go1.10.8 Git commit:6247962 Built: Sun Feb 10 04:12:31 2019 OS/Arch: windows/amd64 Experimental: false Server: Docker Engine -

docker network “l2bridge” - how to determine values for: subnet, gateway, DNS server and VLAN ID that should be used?

半城伤御伤魂 提交于 2021-01-29 06:29:34
问题 I have VM with virtual network, let's say "VN1" and I need to connect from my docker container to that VM in Windows in Azure for Azure Container Instance. The proper way is that I need to create new l2bridge network: docker network create -d "l2bridge" --subnet 10.244.0.0/24 --gateway 10.244.0.1 -o com.docker.network.windowsshim.vlanid=7 -o com.docker.network.windowsshim.dnsservers="10.244.0.7" my_transparent How I could determine these values in Azure: subnet: gateway: DNS Server: VLANID:

Docker installation on Windows 10

ぐ巨炮叔叔 提交于 2021-01-28 21:18:17
问题 I am trying to install Docker on Windows 10 Enterprise Edition but got following exception. Installation failed The Server service is not started. at System.DirectoryServices.DirectoryEntry.RefreshCache() at System.DirectoryServices.AccountManagement.PrincipalContext.DoMachineInit() at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize() at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx() at System.DirectoryServices.AccountManagement.Principal

IIS in Docker returning 403

随声附和 提交于 2021-01-28 05:42:33
问题 I have a Docker image with the ASP.NET dependencies added and a website with a single index.html . The DockerFile is: # escape=` FROM iis-with-asp ADD ./Ping C:/Ping RUN ["C:\\Windows\\System32\\icacls.exe", "\"C:\\Ping\"", "/grant", "\"IIS AppPool\\DefaultAppPool\":(OI)(CI)", "/T"] RUN ["C:\\Windows\\System32\\icacls.exe", "\"C:\\Ping\"", "/grant", "\"IIS_IUSRS\":(OI)(CI)", "/T"] RUN ["C:\\Windows\\System32\\icacls.exe", "\"C:\\Ping\"", "/grant", "\"Network Service\":(OI)(CI)", "/T"] RUN ["\

docker: failed to register layer: re-exec error: exit status 1: output: ProcessBaseLayer . The system cannot find the path specified

孤人 提交于 2021-01-27 08:00:49
问题 Am trying to pull an image from docker hub. docker pull zuehlke/shiny And am facing below error: docker: failed to register layer: re-exec error: exit status 1: output: ProcessBaseLayer C:\ProgramData\Docker\windowsfilter\d2dab1878cf591d869d33aa2c4cd410cd92614a44c776041c506fc765c1a98f1: The system cannot find the path specified. Am having Docker for Windows: docker version Client: Version: 17.09.0-ce API version: 1.32 Go version: go1.8.3 Git commit: afdb6d4 Built: Tue Sep 26 22:40:09 2017 OS

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:

Docker for Windows: Drive sharing failed for an unknown reason

江枫思渺然 提交于 2021-01-06 04:30:52
问题 ENV: `Windows 10 Enterprise 1809 17763.864 Docker Desktop Community 2.1.0.5 Tried sharing drive from D drive docker run -it -v d:/srv/busybox/demo:/var/log busybox daemon throw errors as Drive sharing failed for an unknown reason when checked for docker logs [17:07:54.721][Moby ][Info ] [ 866.663149] CIFS VFS: SMB3 encryption not supported yet [17:07:54.757][Moby ][Info ] [ 866.698107] CIFS VFS: SMB3 encryption not supported yet [17:07:54.797][Moby ][Info ] [ 866.729911] CIFS VFS: SMB

Docker for Windows Kubernetes pod gets ImagePullBackOff after creating a new deployment

烈酒焚心 提交于 2021-01-02 08:31:56
问题 I have successfully built Docker images and ran them in a Docker swarm. When I attempt to build an image and run it with Docker Desktop's Kubernetes cluster: docker build -t myimage -f myDockerFile . (the above successfully creates an image in the docker local registry) kubectl run myapp --image=myimage:latest (as far as I understand, this is the same as using the kubectl create deployment command) The above command successfully creates a deployment, but when it makes a pod, the pod status