docker-for-windows

Docker Windows build fails with error: “The system cannot find the path specified”

笑着哭i 提交于 2020-01-01 02:27:25
问题 I tried to create a directory junction on Docker Windows to create 8.3 . But it failed with the error message below. D:\data\docker\sample>docker build -t sample . Sending build context to Docker daemon 1.272GB Step 1/4 : FROM microsoft/windowsservercore ---> 2cddde20d95d Step 2/4 : RUN fsutil.exe behavior set disable8dot3 0 ---> Running in ec6e7cc09ec6 The registry state is now: 0 (Enable 8dot3 name creation on all volumes). ---> 53805bc21858 Removing intermediate container ec6e7cc09ec6 Step

Docker Desktop for Windows always getting stuck on extracting

岁酱吖の 提交于 2019-12-30 07:54:07
问题 I am facing a problem with Docker Desktop for Windows where I am pulling the docker image microsoft/windowsservercore and it contains 2 layers, one around 1.16 GB and the other one around 4.07 GB. The problem I am facing is that the 4.07GB layer always gets stuck at extracting. I have tried it multiple times in last 2 days. Download easily takes around 40 minutes and extraction takes much longer, getting stuck in the middle for minutes without any progress then towards the end, it just gets

What's the difference between Docker for Windows and Docker on Windows?

泪湿孤枕 提交于 2019-12-30 01:52:45
问题 Docker on Windows appears to be what's coming built into Windows Server 2016 ? and supports running Windows inside a Docker container and using Windows as a Docker container host. Does this support Linux? I don't think so, I think it only supports running Windows Docker containers. This also appears to be maintained by Microsoft. Docker for Windows appears to be a separate install created by the Docker team to bring Linux Docker to Windows. So Windows can be the Docker host but all containers

Locating data volumes in Docker Desktop (Windows)

故事扮演 提交于 2019-12-28 05:16:07
问题 I'm trying to learn docker at the moment and I'm getting confused about where data volumes actually exist. I'm using Docker Desktop for Windows . (Windows 10) In the docs they say that running docker inspect on the object will give you the source:https://docs.docker.com/engine/tutorials/dockervolumes/#locating-a-volume $ docker inspect web "Mounts": [ { "Name": "fac362...80535", "Source": "/var/lib/docker/volumes/fac362...80535/_data", "Destination": "/webapp", "Driver": "local", "Mode": "",

Not able to access kubernetes api from inside a pod container

感情迁移 提交于 2019-12-25 01:49:00
问题 I have created a hashicorp vault deployment and configured kubernetes auth. The vault container calls kubernetes api internally from the pod to do k8s authentication, and that call is failing with 500 error code (connection refused). I am using docker for windows kubernetes. I added the below config to vault for kubernetes auth mechanism. payload.json { "kubernetes_host": "http://kubernetes", "kubernetes_ca_cert": <k8s service account token> } curl --header "X-Vault-Token: <vault root token>"

Some files not visible and other visible as folders after adding Docker volume

懵懂的女人 提交于 2019-12-24 19:31:48
问题 I couldn't start container because of some issues with volumes so I tried this to make sure I understand how volumes work. And there is something strange that is happening here. Two files should be present in /data directory but instead, I see one folder named as one of the files on the source machine. I'm doing this on Windows 10 . PS C:\Users\Piotrek\source\repos\fluentd> dir Directory: C:\Users\Piotrek\source\repos\fluentd Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---

What is Administered port exclusions in windows 10?

耗尽温柔 提交于 2019-12-24 12:34:52
问题 I have hyper-v enabled in windows 10. When I check the excluded ports, I get: C:\> netsh interface ipv4 show excludedportrange protocol=tcp Protocol tcp Port Exclusion Ranges Start Port End Port ---------- -------- 5357 5357 9800 9800 9801 9801 49671 49770 49871 49970 50000 50059 * 61117 61216 61220 61319 61902 62001 * - Administered port exclusions. Why Hyper-V reserves these ports? How Administered port exclusions ( ie, range 50000-50059 ) differ from other port exclusions? For example,

Unable to install windowsServerCore Container Image

徘徊边缘 提交于 2019-12-23 21:27:54
问题 I am trying to install windowsServercore images on my WIndows 2016 server using below command. Install-containerImage WindowsServerCore while running it got below error message. Install-ContainerOSImage : The term 'Install-ContainerOSImage' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. Found there is a work around from article https://social.msdn

Docker: Install chrome on Windows container using dockerfile

偶尔善良 提交于 2019-12-23 19:23:09
问题 I am trying to install Chrome on my windows container. I've created my docker image with a dockerfile and I would like to install chrome using this dockerfile. I've tried with the following command RUN apt-get update -qqy \ && apt-get -qqy install \ xvfb \ && rm -rf /var/lib/apt/lists/* /var/cache/apt/* but I have an error (I think it's because I am on windows container and this command is only for unbutu container...) : 'apt-get' is not recognized as an internal or external command, operable

How can a script distinguish Docker Toolbox and Docker for Windows?

不想你离开。 提交于 2019-12-23 17:29:05
问题 On my current team, we're still transitioning from Docker Toolbox to Docker Desktop for Windows . A lot of our scripts still assume that you're running Docker Toolbox on VirtualBox (like how to mount drives, how slashes or drive names work for those mounts). Is there a reliable way to tell, from inside a script, whether docker is coming from Docker Toolbox or Docker Desktop for Windows? 回答1: Toolbox works via docker-machine . The way the docker client is directed to the virtual machine is via