docker-desktop

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": "",

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---

Can I install Docker inside a Mac VirtualBox VM?

我们两清 提交于 2019-12-24 16:48:09
问题 I have a Mac Sierra 10.12 OS virtual machine, hosted on Windows 10 Home using VirtualBox. I would like to run Docker inside this Mac VM, but when I try, I get the below error message: Error Incompatible CPU detected. We are sorry, but your hardware is incompatible with Docker Desktop. Docker requires a processor with virtualization capabilities and hypervisor support. To learn more about this issue, see: https://docs.docker.com/docker-for-mac/troubleshoot I know that my machine (HP Envy,

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

Docker Desktop for Windows: cannot access service on exposed port in windows container mode

浪子不回头ぞ 提交于 2019-12-21 07:30:08
问题 I am using the following Dockerfiles to create a container running Jenkins in a windows container on Windows 10 desktop running Docker Desktop for Windows version 17.03 FROM microsoft/windowsservercore RUN powershell -Command wget 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=210185' -Outfile 'C:\jreinstaller.exe' ; Start-Process -filepath C:\jreinstaller.exe -passthru -wait -argumentlist "/s,INSTALLDIR=c:\Java\jre1.8.0_91" ; del C:\jreinstaller.exe ENV JAVA_HOME c:\\Java\\jre1.8

Docker run failed with Error response from daemon

那年仲夏 提交于 2019-12-19 02:47:07
问题 I simply run the following command: docker run -d -p 80:80 --name webserver nginx and after pulling all images returns this error: docker: Error response from daemon: driver failed programming external connectivity on endpoint webserver (ac5719bc0e95ead1a4ec6b6ae437c4c0b8a9600ee69ecf72e73f8d2d12020f97): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE). Here is my docker Version info: Client: Version: 1.12.0 API version: 1.24 Go version: go1.6.3 Git

How to read Powershell variable inside Dockerfile?

旧时模样 提交于 2019-12-13 16:27:44
问题 I'm building Docker Desktop for Windows image. I try to pass a variable to a Powershell command, but it does not work. Dockerfile # escape=` FROM microsoft/windowsservercore SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] RUN $someVar="2.60.3" ; echo $someVar Docker build Sending build context to Docker daemon 2.048kB Step 1/3 : FROM microsoft/windowsservercore ---> 2c42a1b4dea8 Step 2/3 : SHELL powershell -Command

Can I run Windows containers on Docker Desktop for Mac?

大憨熊 提交于 2019-12-12 07:46:37
问题 I want to be able to run Windows Docker Containers on my Mac, it seems this was sort of supported using Docker Toolbox How can I run a docker windows container on osx? But it seems that this is now deprecated and we should be using Docker Desktop now. Docker Desktop has a better and New Hypervisor called HyperKit instead of Virtual Box https://docs.docker.com/docker-for-mac/docker-toolbox/ Docker toolbox allowed starting Windows Containers using VirtualBox, so not sure if that mean's that