When I try to get docker working I get an error:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
OS: Windows 10 Home Version 1607 (OS Build 14393.1198)
Running Docker in Bash On Ubuntu On Windows
root@DESKTOP-IFLG39M:/mnt/c/Users/ZAch# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
root@DESKTOP-IFLG39M:/mnt/c/Users/ZAch# docker version
Client:
Version: 17.03.1-ce
API version: 1.27
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:14:09 2017
OS/Arch: linux/amd64
I tried editing this file suggested in a forum:
root@DESKTOP-IFLG39M:/mnt/c/Users/ZAch# sudo nano /etc/systemd/system/docker.service
But when the nano opened it was a blank file.
So I tried to reinstall and got some errors:
Uninstall:
root@DESKTOP-IFLG39M:/mnt/c/Users/ZAch# sudo apt remove docker-ce
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
aufs-tools cgroupfs-mount
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
docker-ce
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 89.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 81692 files and directories currently installed.)
Removing docker-ce (17.03.1~ce-0~ubuntu-xenial) …
invoke-rc.d: could not determine current runlevel…]
invoke-rc.d: policy-rc.d denied execution of stop.
Processing triggers for man-db (2.7.5-1) …##########################################################…]
Install:
root@DESKTOP-IFLG39M:/mnt/c/Users/ZAch# sudo apt-get install docker-ce
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
docker-ce
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/19.3 MB of archives.
After this operation, 89.0 MB of additional disk space will be used.
Selecting previously unselected package docker-ce.
(Reading database … 81489 files and directories currently installed.)
Preparing to unpack …/docker-ce_17.03.1~ce-0~ubuntu-xenial_amd64.deb …
Unpacking docker-ce (17.03.1~ce-0~ubuntu-xenial) …
Processing triggers for man-db (2.7.5-1) …
Processing triggers for systemd (229-4ubuntu17) …
Processing triggers for ureadahead (0.100.0-19) …
Setting up docker-ce (17.03.1~ce-0~ubuntu-xenial) …
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.