Docker Community Forums

Share and learn in the Docker community.

Cygwin needs admin-privileges to access docker beta

beta

(Gaerfield) #1

Steps to reproduce

The default-machine (MobyLinuxVM) isn’t found within cygwin (because of 11892 - should-mobylinux-appear-in-the-results-from-docker-machine-ls). Creating a new one is neccessary (either in admin-cygwin-shell or admin-powershell):

~> docker-machine create --driver hyperv default
Running pre-create checks...
Creating machine...
(default) Copying C:\Users\blaschke\.docker\machine\cache\boot2docker.iso to C:\Users\blaschke\.docker\machine\machines\
default\boot2docker.iso...
(default) Creating SSH key...
(default) Creating VM...
(default) Using switch "DockerNAT"
(default) Creating VHD
(default) Starting VM...
(default) Waiting for host to start...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe env default

A non-admin cygwin-shell will report:

 ~ > docker-machine env default
Error checking TLS connection: Host is not running
 ~ > docker-machine ls
NAME      ACTIVE   DRIVER   STATE   URL   SWARM   DOCKER    ERRORS
default   -        hyperv                         Unknown

An admin cygwin-shell will report:

 ~ > docker-machine ls
NAME       ACTIVE   DRIVER   STATE     URL                    SWARM   DOCKER    ERRORS
default    -        hyperv   Running   tcp://10.0.75.4:2376           v1.11.1

Information

HostOS Win10
SystemDirectory: C:\Windows\system32
BuildNumber: 10586
SerialNumber: 00330-80000-00000-AA215
Version: 10.0.10586

first-time Installation of Docker in windows:

~> docker --version
Docker version 1.11.1, build 5604cbe