Unable to write to the database. Exit code: 1
I just installed Docker for Windows v17.03 and got the following error message:
Unable to write to the database. Exit code: 1
em Docker.Backend.ContainerEngine.Linux.DoStart(Settings settings)
em Docker.Backend.ContainerEngine.Linux.Start(Settings settings)
em Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.
My log is:
Version: 17.03.1-ce-win5 (10743) Channel: stable Sha1: b18e2a50ccf296bcd637b330c0ca9faaab9d790c Started on: 2017/04/05 08:20:09.897 Resources: C:\Program Files\Docker\Docker\Resources OS: Windows 10 Pro Edition: Professional Id: 1607 Build: 14393 BuildLabName: 14393.953.amd64fre.rs1_release_inmarket.170303-1614 File: C:\Users\hcunha\AppData\Local\Docker\log.txt CommandLine: "C:\Program Files\Docker\Docker\Docker for Windows.exe"
...
[08:20:29.851][DataKit ][Error ] Process died [08:20:31.101][Database ][Error ] 2017/04/05 08:20:29 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:29 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:30 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:30 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:30 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:30 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:30 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:30 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:30 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:30 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/04/05 08:20:30 Failed to contact the database on \.\pipe\dockerDataBase: open \.\pipe\dockerDataBase: O sistema não pode encontrar o arquivo especificado.
[08:20:31.102][Database ][Error ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s
...
Diagnostic ID 9129BCA6-8F52-4344-B7A2-6C19FB88E642/2017-04-05_08-21-23
Please help me.
+1
+1 Exactly the same here.
using hardware directly and I had this working before for Linux containers, tried to disable anti-virus (symantec), disabled socks ( I have opentext socks installed), disabled VPN connection (as it seems to be messed with it when starting the Docker), and nothing worked.
Maybe something to do with this policy, that for me is disabled (by a fix or by a GPO, or something...): https://docs.microsoft.com/en-us/windows/device-security/security-policy-settings/network-access-named-pipes-that-can-be-accessed-anonymously
Version: 17.03.1-ce-win12 (12058) Channel: stable Sha1: d1db12684b33b778cfc3012e92959e50eb486fcd Started on: 2017/06/04 11:58:49.850 Resources: C:\Program Files\Docker\Docker\Resources OS: Windows 10 Enterprise Edition: Enterprise Id: 1607 Build: 14393 BuildLabName: 14393.1198.amd64fre.rs1_release_sec.170427-1353 File: C:\Users\GREGORIOMomm\AppData\Local\Docker\log.txt CommandLine: "C:\Program Files\Docker\Docker\Docker for Windows.exe" You can send feedback, including this log file, at https://github.com/docker/for-win/issues
... [19:56:11.684][DataKit ][Error ] Process died [19:56:12.938][Database ][Error ] 2017/06/04 19:56:11 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Retry dialing \.\pipe\dockerDataBase in 100ms 2017/06/04 19:56:12 Failed to contact the database on \.\pipe\dockerDataBase: open \.\pipe\dockerDataBase: The system cannot find the file specified.
[19:56:12.939][Database ][Error ] Unable to modify database: Unable to write to the database. Exit code: 1. Let's retry in 1s [19:56:13.939][Database ][Info ] Writing com.docker.driver.amd64-linux/net/config=static [19:56:13.939][Database ][Info ] Writing com.docker.driver.amd64-linux/net/address=10.0.75.2 [19:56:13.939][Database ][Info ] Writing com.docker.driver.amd64-linux/net/netmask=255.255.255.0 [19:56:13.939][Database ][Info ] Writing com.docker.driver.amd64-linux/net/gateway=10.0.75.1 [19:56:13.939][Database ][Info ] Writing com.docker.driver.amd64-linux/network=hybrid [19:56:13.939][Database ][Info ] Writing com.docker.driver.amd64-linux/etc/docker/daemon.json={"registry-mirrors":[],"insecure-registries":[]} [19:56:13.939][Database ][Info ] Writing com.docker.driver.amd64-linux/etc/sysctl.conf= [19:56:13.939][Database ][Info ] Writing com.docker.driver.amd64-linux/native/port-forwarding=true
Found out that I had a conflict with the OpenText socks client that I have installed, once I uninstalled the docker worked. Still don't know how to enable both to work together or why they were conflicting (sure in the network layer).
@gmomm interesting - please post back if you find out more.
Any update on this? I'm installing Docker on Windows 10 and ran into the same issue.
What I learned is that there was network conflict with a product (open text socks) that I had installed, could be the same for you, this conflict was blocking (I was unable to get deeper into it) the network communication required by the shared pipe ...So I uninstalled it and used an alternative socks solution
Em Qua, 9 de ago de 2017 12:31, Hong Lu [email protected] escreveu:
Any update on this? I'm installing Docker on Windows 10 and ran into the same issue.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/619#issuecomment-321291455, or mute the thread https://github.com/notifications/unsubscribe-auth/ACSxp9pF6VccQ-m0jc08v1Pglxi-5iC7ks5sWdC0gaJpZM4M0HwI .
@gmomm Thanks for the lightning response! I actually don't have open text socks installed. Maybe it's some other products. How did you know it was open text socks?
I looked for any applications that have relation with network and are not part of the basic installation of windows, I uninstalled , restarted Windows , and Presto it's working
Em Qua, 9 de ago de 2017 15:24, Hong Lu [email protected] escreveu:
@gmomm https://github.com/gmomm Thanks for the lightning response! I actually don't have open text socks installed. Maybe it's some other products. How did you know it was open text socks?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/619#issuecomment-321340631, or mute the thread https://github.com/notifications/unsubscribe-auth/ACSxpzkFATV90GSTZTOlFb4Ey0dndwSbks5sWflrgaJpZM4M0HwI .
Hi there, i'm also having the same problem , gave permissions on windows firewall, only windows defender, no other AV installed. Already reseted settings , re-installed doker, nothing worked. In need of urgent feedback, thanks.
Version: 17.06.0-ce-win19 (12801) Channel: stable Sha1: c98c1c25e05a39ca8ef5394baa1d68f92f8e5008 Started on: 2017/08/14 14:58:20.698 Resources: C:\Program Files\Docker\Docker\Resources OS: Windows 10 Pro Edition: Professional Id: 1703 Build: 15063 BuildLabName: 15063.0.amd64fre.rs2_release.170317-1834
here is the report ID : 5136A7F1-3053-436D-8C41-87318833CDD7/2017-08-14_14-59-50
if i switch to windows containers, it throws another error
Docker daemon failed with message:
em Docker.Backend.ContainerEngine.Windows.DoStart(Settings settings)
em Docker.Backend.ContainerEngine.Windows.Start(Settings settings)
em Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.
here's this diagnostic ID: 5136A7F1-3053-436D-8C41-87318833CDD7/2017-08-14_15-32-11
i've installed the last Edge version and the same error pops up
Unable to write to the database. Exit code: 1
em Docker.Backend.ContainerEngine.Linux.DoStart(Settings settings) em C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Linux.cs:line 246
em Docker.Backend.ContainerEngine.Linux.Restart(Settings settings) em C:\gopath\src\github.com\docker\pinata\win\src\Docker.Backend\ContainerEngine\Linux.cs:line 182
em Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass9_0.
report ID: 5136A7F1-3053-436D-8C41-87318833CDD7/2017-08-14_17-17-28
@friism or @jasonbivins any thoughts on this ?
Hi, this solved for me , uninstalling Web companion. https://github.com/docker/for-win/issues/821
Hi, solved for me too (uninstall my VPN Astrill tools) and problem is gone.
same problem Docker version 17.06.2-ce, build cec0b72
Same problem. Can anybody help with some clue? I tried all different steps mentioned in this forum. Even tried to add a VM in Hyper-V

both the latest stable and edge version don's use the database anymore. Please retry with the latest versions.
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked