You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docker installation fails E: Can not write log(Is /dev/pts mounted?) #85
root@localhost:/mnt/c/apps/cmder# apt-get install docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
docker
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 0 B/12.2 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
Selecting previously unselected package docker.
(Reading database ... 24948 files and directories currently installed.)
Preparing to unpack .../docker_1.5-1_amd64.deb ...
Unpacking docker (1.5-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up docker (1.5-1) ...
root@localhost:/mnt/c/apps/cmder# docker
The program 'docker' is currently not installed. You can install it by typing:
apt-get install docker
root@localhost:/mnt/c/apps/cmder#
Reacted by Caio Quirino da Silva, Feng Yu, Lucas, Arek Burdach, Kiina, Toni DY, Hiling, Tuan Kuranes, Goffert van Gool, Joel Handwell and 16 more
Seems to be related to #80. I'm not convinced that the log error is causing docker to fail to install (but what do I know, I'm just some random guy on the Internet), but it nevertheless isn't working, just as you say.
The logs error is known and is a red herring, sorry. Docker does not run on WSL at this time. it is something on our radar but not something we want to talk about quite yet. That said, if someone wants to play with Docker here's what they will see:
Docker install instructions are here. Follow the instructions for Trusty 14.04 (LTS)
Starting the Docker service gives the following error (you also see this error on the apt-get install docker-engine when it tries to start the service):
$ sudo service docker start
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: No such fi
le or directory
Starting Docker: docker [ OK ]
While it says the Docker service is started, don't be fooled:
$ sudo docker run hello-world
docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
See 'docker run --help'.
Hate to say it, but I did nothing special for upstart. Before running this test I uninstalled using lxrun /uninstall, then did my usual round of apt-get installs for update, upgrade, build-essential, git and ruby. After that I just followed the instructions on the webpage. What I believe you're seeing is an error that was a result of #143.
Running docker with the apt-get fixes on that thread it looks like:
russ@RUSSALEX-DESK:~$ sudo service docker start
* Starting Docker: docker [ OK ]
russ@RUSSALEX-DESK:~$ sudo docker run hello-world
docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
See 'docker run --help'.
Even though the service seems to start at my end, something else must be broken, as not even
root@localhost:~# docker -D info ^Croot@localhost:~# docker --help ^Croot@localhost:~#
info or help are displayed. I guess this got to do with docker itself which requires Kernel 3.10+. Is there any chance we get a more recent kernel for WSL?
Coming from computer science, I really think the ability to run docker containers and any other linux tools could really boost bioinformatics, where there are also a lot of non-computer-affine people :)
WSL isn't a Linux kernel, it's an emulation layer. Though good question what kernel ABI version is being targeted. Presumably things may need to be updated a bit when the Ubuntu version gets dist-upgraded from 14.04 to 16.04.
The docker engine is not a supported scenario in the short term. I would suggest hitting our User Voice page and upvoting Docker if you're looking to run the docker engine.
The docker client however should be running in build 14342. I have been able to run the docker client and connect to a docker engine running in a VM.
For what it's worth: A big piece of docker-engine actually lives inside the kernel itself. That's why it keeps requiring newer kernels. (The docker-engine process doesn't actually do a whole lot itself when running a container; its job is to tell the kernel what to do, the kernel does the real work.)
WSL is a clean-room kernel reimplementation. So it can't, for both technical and legal reasons, simply take the kernel components of Docker and "make it work". They would need to reverse-engineer years of ongoing kernel development and reimplement it. (Or take some other nontrivial approach.)
If I were a WSL dev (which I'm not), I would totally enjoy that project. But it would take me a huge amount of time, time that could be spent building many other big features.
Reacted by michael wise, Jari Pennanen, Trevor N. Suarez, Jaewoo Kim, Rahul Ramteke and Stanislas
Itay Shakury (@itaysk) - This issue is specifically about docker not installing, which as been fixed. There are other issues tracking various docker pieces not working.
Ben Hillis (@benhillis) yeah
i tried to run service docker start ,
and it output: * Starting Docker: docker [ OK ]
but run ps , no ouput any docker's process
dockerd can run on WSL yes, if you'll try running dockerd you'll see the errors.
there are multiple things missing from the kernel in WSL, cgroups is one of them.
I think it would be a killer feature for WSL. but sound like it conflicts with Microsoft selling windows docker support as part of windows 10 pro.
It's it a bit sad that I need to assume such thing.
Can someone from Microsoft end please say it bit more clearly ? what is the direction here ? lots of threads I've seen here around this specific issue.
And I believe it's more then technical question.
Don't get me wrong, Microsoft are entitled to this money, this task of getting docker to work natively is far from being easy nor cheap.
Israel Fruchter (@fruch) cgroups are a feature of the memory manager, and in Linux non-server systems, they are almost entirely used by Systemd. By the way, Windows containers are not available in Win10 Pro. Hyper-V containers are, and the reason why they are restricted to Win10Pro is because Hyper-V is only available on Win10 Pro.
fpqc thanks, I actually meant hyper-v (I don't have much need yet for windows containers), and I don't really care much how it works under the hood (A big fat lie..) as long it's working fast and reliable, and have the same features as docker on linux system. and I want for free... (could be nice if it would be free, but 99$ extra for win10pro sounds reasonable enough for me, as long it's working from WSL)
This is what I get trying to start dockerd manually:
:/mnt/c/www$ sudo dockerd
WARN[2018-04-02T14:46:43.056552600-07:00] Could not set daemon root propagation to shared, this is not generally critical but may cause some functionality to not work or fallback to less desirable behavior dir=/var/lib/docker error="invalid argument"
INFO[2018-04-02T14:46:43.091924600-07:00] libcontainerd: started new docker-containerd process pid=9993
INFO[0000] starting containerd module=containerd revision=cfd04396dc68220d1cecbe686a6cc3aa5ce3667c version=v1.0.2
INFO[0000] loading plugin "io.containerd.content.v1.content"... module=containerd type=io.containerd.content.v1
INFO[0000] loading plugin "io.containerd.snapshotter.v1.btrfs"... module=containerd type=io.containerd.snapshotter.v1
WARN[0000] failed to load plugin io.containerd.snapshotter.v1.btrfs error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module=containerd
INFO[0000] loading plugin "io.containerd.snapshotter.v1.overlayfs"... module=containerd type=io.containerd.snapshotter.v1
INFO[0000] loading plugin "io.containerd.metadata.v1.bolt"... module=containerd type=io.containerd.metadata.v1
WARN[0000] could not use snapshotter btrfs in metadata plugin error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module="containerd/io.containerd.metadata.v1.bolt"
INFO[0000] loading plugin "io.containerd.differ.v1.walking"... module=containerd type=io.containerd.differ.v1
INFO[0000] loading plugin "io.containerd.gc.v1.scheduler"... module=containerd type=io.containerd.gc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.containers"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.content"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.diff"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.events"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.healthcheck"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.images"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.leases"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.namespaces"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.snapshots"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.monitor.v1.cgroups"... module=containerd type=io.containerd.monitor.v1
INFO[0000] loading plugin "io.containerd.runtime.v1.linux"... module=containerd type=io.containerd.runtime.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.tasks"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.version"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.introspection"... module=containerd type=io.containerd.grpc.v1
INFO[0000] serving... address="/var/run/docker/containerd/docker-containerd-debug.sock" module="containerd/debug"
INFO[0000] serving... address="/var/run/docker/containerd/docker-containerd.sock" module="containerd/grpc"
INFO[0000] containerd successfully booted in 0.095300s module=containerd
INFO[2018-04-02T14:46:43.410322300-07:00] Graph migration to content-addressability took 0.00 seconds
WARN[2018-04-02T14:46:43.410986500-07:00] Your kernel does not support cgroup memory limit
WARN[2018-04-02T14:46:43.411430700-07:00] Unable to find cpu cgroup in mounts
WARN[2018-04-02T14:46:43.433371200-07:00] Unable to find blkio cgroup in mounts
WARN[2018-04-02T14:46:43.433807500-07:00] Unable to find cpuset cgroup in mounts
WARN[2018-04-02T14:46:43.435181100-07:00] mountpoint for pids not found
Error starting daemon: Devices cgroup isn't mounted
Activity
mphaney commentedon Apr 8, 2016
Seems to be related to #80. I'm not convinced that the log error is causing docker to fail to install (but what do I know, I'm just some random guy on the Internet), but it nevertheless isn't working, just as you say.
russalex commentedon Apr 9, 2016
The logs error is known and is a red herring, sorry. Docker does not run on WSL at this time. it is something on our radar but not something we want to talk about quite yet. That said, if someone wants to play with Docker here's what they will see:
While it says the Docker service is started, don't be fooled:
uadev commentedon Apr 9, 2016
Russ Alexander (@russalex) You've managed to run
upstartsomehow? Is there an instruction for this?mjoppich commentedon Apr 11, 2016
Russ Alexander (@russalex) it'd be interesting to see how you overcame upstart ...
russalex commentedon Apr 12, 2016
Hate to say it, but I did nothing special for upstart. Before running this test I uninstalled using lxrun /uninstall, then did my usual round of apt-get installs for update, upgrade, build-essential, git and ruby. After that I just followed the instructions on the webpage. What I believe you're seeing is an error that was a result of #143.
Running docker with the apt-get fixes on that thread it looks like:
mjoppich commentedon Apr 13, 2016
Thanks for the heads up.
Even though the service seems to start at my end, something else must be broken, as not even
root@localhost:~# docker -D info ^Croot@localhost:~# docker --help ^Croot@localhost:~#info or help are displayed. I guess this got to do with docker itself which requires Kernel 3.10+. Is there any chance we get a more recent kernel for WSL?
Coming from computer science, I really think the ability to run docker containers and any other linux tools could really boost bioinformatics, where there are also a lot of non-computer-affine people :)
tkelman commentedon Apr 13, 2016
WSL isn't a Linux kernel, it's an emulation layer. Though good question what kernel ABI version is being targeted. Presumably things may need to be updated a bit when the Ubuntu version gets
dist-upgraded from 14.04 to 16.04.renatocassino commentedon Apr 25, 2016
Someone made the Docker work?
russalex commentedon May 16, 2016
The docker engine is not a supported scenario in the short term. I would suggest hitting our User Voice page and upvoting Docker if you're looking to run the docker engine.
The docker client however should be running in build 14342. I have been able to run the docker client and connect to a docker engine running in a VM.
yarmand commentedon May 29, 2016
To help future work, here is my investigation.
I installed latest docker-engine following instruction at:
https://docs.docker.com/engine/installation/linux/ubuntulinux/
issues:
The strace reveal invalid argument on setsockopt:
value 1 as Boolean flag seems fine for SO_BROADCAST when looking at
man 7 socketdavetropeano commentedon Jul 21, 2016
Russ Alexander (@russalex) - we can't upvote Docker on UserVoice.. it is locked :(
https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13250370-docker
aseering commentedon Jul 21, 2016
For what it's worth: A big piece of docker-engine actually lives inside the kernel itself. That's why it keeps requiring newer kernels. (The docker-engine process doesn't actually do a whole lot itself when running a container; its job is to tell the kernel what to do, the kernel does the real work.)
WSL is a clean-room kernel reimplementation. So it can't, for both technical and legal reasons, simply take the kernel components of Docker and "make it work". They would need to reverse-engineer years of ongoing kernel development and reimplement it. (Or take some other nontrivial approach.)
If I were a WSL dev (which I'm not), I would totally enjoy that project. But it would take me a huge amount of time, time that could be spent building many other big features.
25 remaining items
tnguyen14 commentedon Aug 18, 2017
Is the Creator's Update GA?
benhillis commentedon Aug 18, 2017
Tri Nguyen (@tnguyen14) - Yes, it was released a few months ago:
https://support.microsoft.com/en-us/help/4028685/windows-get-the-windows-10-creators-update
itaysk commentedon Aug 18, 2017
Ben Hillis (@benhillis) wait, so we can run linux docker containers on wsl now?
benhillis commentedon Aug 18, 2017
Itay Shakury (@itaysk) - This issue is specifically about docker not installing, which as been fixed. There are other issues tracking various docker pieces not working.
4mitch commentedon Aug 27, 2017
It seems now we should trace for following issue #2291
tangyouwo commentedon Dec 8, 2017
Ben Hillis (@benhillis) now i tried install docker-ce according to the official website documentation。
https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-from-a-package
but run : docker run hello-world
it still : docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
benhillis commentedon Dec 8, 2017
Can you try manually launching the docker daemon before running this command?
tangyouwo commentedon Dec 8, 2017
Ben Hillis (@benhillis) yeah
i tried to run service docker start ,
and it output: * Starting Docker: docker [ OK ]
but run ps , no ouput any docker's process
fruch commentedon Dec 8, 2017
dockerd can run on WSL yes, if you'll try running dockerd you'll see the errors.
there are multiple things missing from the kernel in WSL, cgroups is one of them.
I think it would be a killer feature for WSL. but sound like it conflicts with Microsoft selling windows docker support as part of windows 10 pro.
It's it a bit sad that I need to assume such thing.
Can someone from Microsoft end please say it bit more clearly ? what is the direction here ? lots of threads I've seen here around this specific issue.
And I believe it's more then technical question.
Don't get me wrong, Microsoft are entitled to this money, this task of getting docker to work natively is far from being easy nor cheap.
fpqc commentedon Dec 9, 2017
Israel Fruchter (@fruch) cgroups are a feature of the memory manager, and in Linux non-server systems, they are almost entirely used by Systemd. By the way, Windows containers are not available in Win10 Pro. Hyper-V containers are, and the reason why they are restricted to Win10Pro is because Hyper-V is only available on Win10 Pro.
fruch commentedon Dec 9, 2017
fpqc thanks, I actually meant hyper-v (I don't have much need yet for windows containers), and I don't really care much how it works under the hood (A big fat lie..) as long it's working fast and reliable, and have the same features as docker on linux system. and I want for free... (could be nice if it would be free, but 99$ extra for win10pro sounds reasonable enough for me, as long it's working from WSL)
Paul-Pushkarov commentedon Apr 2, 2018
This is what I get trying to start
dockerdmanually:fpqc commentedon Apr 3, 2018
No cgroups support right now. I wonder what would happen if it were for all intents and purposes stubbed out.
therealkenc commentedon Apr 3, 2018
I say go full Law of WSL Github and ask for this.
onomatopellan commentedon Apr 25, 2018
Dunno if it has been stubbed out but in build 17134 this is what a working dockerd inside WSL shows at launch: