Docker Community Forums

Share and learn in the Docker community.

Docker does not start after install


(Julioes) #1

Expected behavior

Docker for Windows should start.

Actual behavior

Docker for Windows does not start with UI message “Unable to execute Start: Unable to write to the database. Exit code: 1”.

Information

The error appears to trace back to opening a socket for the Docker DB; Failed to set up server socket listening on “hyperv-connect://f32b23ac-f605-4157-8462-dbd64125c19e”: Unix.Unix_error(Unix.EAFNOSUPPORT, “socket”, “”).

Log

[09:56:39.857][Program ][Info ] 1.12.0-rc2-beta16
[09:56:39.857][Program ][Info ] Starting on: 6/27/2016 9:56:39 AM
[09:56:39.873][Program ][Info ] Resources: C:\Program Files\Docker\Docker\Resources
[09:56:39.873][Program ][Info ] OS: Windows 10 Pro
[09:56:39.888][Program ][Info ] Edition: Professional
[09:56:39.888][Program ][Info ] Id: 1511
[09:56:39.888][Program ][Info ] Build: 10586
[09:56:39.888][Program ][Info ] BuildLabName: 10586.420.amd64fre.th2_release_sec.160527-1834
[09:56:39.904][Program ][Info ] Mixpanel Id: DFF0053D-2B67-4593-8D9E-7AD2260AA496
[09:56:39.920][Program ][Info ] Sha1: 999af1eac01deb75d9f166febb99a14b96b88ae3
[09:56:39.920][Program ][Info ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[09:56:40.810][TrackingStatus ][Info ] Crash report and usage statistics are enabled
[09:56:40.857][Mixpanel ][Info ] Usage Statistic: appLaunched
[09:56:41.545][NamedPipeClient][Info ] Sending Version()…
[09:56:41.576][NamedPipeClient][Info ] Received response for Version
[09:56:41.591][Mixpanel ][Info ] Usage Statistic: heartbeat
[09:56:15.288][BackendServer ][Info ] Started
[09:56:41.560][NamedPipeServer][Info ] Version()
[09:56:41.576][NamedPipeServer][Info ] Version done.
[09:56:42.326][NamedPipeClient][Info ] Sending Stop()…
[09:56:42.326][Updater ][Info ] Checking for updates on channel Beta…
[09:56:42.326][NamedPipeServer][Info ] Stop()
[09:56:42.341][HyperV ][Info ] Stop
[09:56:42.373][PowerShell ][Info ] Run script with parameters: -Stop True…
[09:56:42.810][Updater ][Info ] Local build 4760 is as good as the remote 4760 on channel Beta
[09:56:57.469][HyperV ][Info ] Kill VM MobyLinuxVM…
[09:56:57.517][HyperV ][Info ] VM MobyLinuxVM is stopped
[09:56:57.540][NamedPipeClient][Info ] Received response for Stop
[09:56:57.535][NamedPipeServer][Info ] Stop done.
[09:56:57.546][NamedPipeClient][Info ] Sending Start(Docker.Core.Settings)…
[09:56:57.562][NamedPipeServer][Info ] Start(Docker.Core.Settings)
[09:56:57.570][HyperVGuids ][Info ] Installing GUIDs…
[09:56:57.579][HyperVGuids ][Info ] GUIDs installed
[09:56:57.623][Firewall ][Info ] Opening ports for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe…
[09:57:01.362][Firewall ][Info ] Ports are opened
[09:57:01.368][HyperV ][Info ] Create
[09:57:01.373][PowerShell ][Info ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso…
[09:57:02.696][HyperV ][Info ] Using existing Switch: DockerNAT
[09:57:03.605][HyperV ][Info ] Using existing Switch IP address
[09:57:04.936][HyperV ][Info ] Using existing: MobyLinuxVM
[09:57:05.300][HyperV ][Info ] Setting MobyLinuxVM vm CPUs to 2 and Memory to 2048 MB
[09:57:05.310][ProxyProcess ][Info ] Starting…
[09:57:05.316][PowerShell ][Info ] Run script…
[09:57:05.464][ProxyProcess ][Info ] Started
[09:57:05.472][Database ][Info ] Writing com.docker.driver.amd64-linux/net/config=static
[09:57:05.475][Database ][Info ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2
[09:57:05.479][Database ][Info ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0
[09:57:05.483][Database ][Info ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1
[09:57:05.487][Database ][Info ] Writing com.docker.driver.amd64-linux/etc/resolv.conf=nameserver 10.0.75.1
[09:57:05.491][Database ][Info ] Writing com.docker.driver.amd64-linux/network=hybrid
[09:57:05.496][Database ][Info ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={“registry-mirrors”:[],“insecure-registries”:[],“debug”:false}
[09:57:05.501][Database ][Info ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf=
[09:57:05.508][Database ][Info ] Writing com.docker.driver.amd64-linux/native/port-forwarding=false
[09:57:05.518][ProxyProcess ][Info ] Start com.docker.db.exe --git C:\ProgramData\Docker\database --url hyperv-connect://f32b23ac-f605-4157-8462-dbd64125c19e,\.\pipe\dockerDataBase --color never
[09:57:05.797][ProxyProcess ][Info ] Start com.docker.slirp.exe --ethernet hyperv-connect://f32b23ac-f605-4157-8462-dbd64125c19e --dns 10.0.75.1 --port hyperv-connect://f32b23ac-f605-4157-8462-dbd64125c19e --debug
[09:57:05.889][ProxyProcess ][Info ]
[09:57:05.898][ProxyProcess ][Info ] +000us Datakit Starting com.docker.db…
[09:57:05.908][ProxyProcess ][Info ] Failed to set up server socket listening on “hyperv-connect://f32b23ac-f605-4157-8462-dbd64125c19e”: Unix.Unix_error(Unix.EAFNOSUPPORT, “socket”, “”)
[09:57:05.988][ProxyProcess ][Info ] docker proxy (on deprecated port): ready
[09:57:05.997][ProxyProcess ][Info ] dns server: ready
[09:57:06.002][ProxyProcess ][Info ] poison pill com.docker.service
[09:57:06.007][ProxyProcess ][Info ] docker proxy: ready
[09:57:06.033][ProxyProcess ][Info ] com.docker.slirp.exe: using DNS forwarder on 10.0.75.1:53
[09:57:06.039][ProxyProcess ][Info ] com.docker.slirp.exe: starting port_forwarding port_control_url:hyperv-connect://f32b23ac-f605-4157-8462-dbd64125c19e
[09:57:06.046][ProxyProcess ][Warning] com.docker.slirp.exe: no database: using hardcoded network configuration values
[09:57:06.034][ProxyProcess ][Info ] Manager: connect
[09:57:06.070][ProxyProcess ][Info ] WARNING: Io_page on Windows doesn’t guarantee alignment
[09:57:06.052][ProxyProcess ][Info ] com.docker.slirp.exe: connecting to f32b23ac-f605-4157-8462-dbd64125c19e:30D48B34-7D27-4B0B-AAAF-BBBED334DD59
[09:57:06.083][ProxyProcess ][Debug ] com.docker.slirp.exe: Waiting for connections on socket hyperv-connect://f32b23ac-f605-4157-8462-dbd64125c19e
[09:57:06.088][ProxyProcess ][Info ] proxy: internal error, uncaught exception:
[09:57:06.098][ProxyProcess ][Info ] Unix.Unix_error(Unix.EAFNOSUPPORT, “socket”, “”)
[09:57:06.104][ProxyProcess ][Info ] Raised by primitive operation at file “lwt/lwt_hvsock.ml”, line 78, characters 21-32
[09:57:06.110][ProxyProcess ][Info ] Called from file “src/main.ml”, line 65, characters 17-37
[09:57:06.117][ProxyProcess ][Info ] Called from file “src/main.ml”, line 214, characters 18-62
[09:57:06.911][Database ][Error ] 2016/06/27 09:57:05 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:05 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:05 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:05 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:06 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:06 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:06 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:06 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:06 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:06 Retry dialing \.\pipe\dockerDataBase in 100ms
2016/06/27 09:57:06 Failed to contact the database on \.\pipe\dockerDataBase: open \.\pipe\dockerDataBase: The system cannot find the file specified.

[09:57:06.917][Database ][Error ] Unable to write to the database: Unable to write to the database. Exit code: 1. Let’s retry in 1s

Diagnostic ID: DFF0053D-2B67-4593-8D9E-7AD2260AA496/2016-06-27_10-11-01
Windows 10 Pro 1511 (OS Build 10586.420) on a Surface Pro 3.

Steps to reproduce the behavior

  1. Start Docker for Windows first time after installation.

(C4wrd) #2

I have the same issue, albeit running a newer preview build. I think it is an issue with Hyper-V, as I cannot use Hyper-V for any Virtual Machines after the latest few insider releases.