root@Andy-PC:~# uname -a
Linux Andy-PC 4.4.--Microsoft #-Microsoft Fri Apr :: PST x86_64 x86_64 x86_64 GNU/Linux
apt install docker
docker --help
apt install docker-compose
docker-compose --help
root@Andy-PC:/mnt/d/Download/MockSecKill-master# docker-compose bundle
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

这个方法,未重启貌似无效。

apt install cgroup-bin

https://blog.csdn.net/x_i_y_u_e/article/details/44704289

参考错误:

https://github.com/Microsoft/WSL/issues/2291

https://forums.docker.com/t/error-when-running-docker-compose-couldnt-connect-to-docker-daemon-at-http-docker-localunixsocket/43803

如下方法(可能无效):

https://stackoverflow.com/questions/32002882/error-starting-docker-daemon-on-ubuntu-14-04-devices-cgroup-isnt-mounted

https://teguhsatria.com/2017/06/21/error-starting-daemon-devices-cgroup-isnt-mounted/

https://github.com/docker/compose/issues/4181

可能有效(未尝试):

http://www.cnblogs.com/jackluo/p/5441888.html

相关版本信息

root@Andy-PC:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04. LTS
Release: 16.04
Codename: xenial

root@Andy-PC:~# uname -a
Linux Andy-PC 4.4.--Microsoft #-Microsoft Thu Jun :: PST x86_64 x86_64 x86_64 GNU/Linux
root@Andy-PC:~# dockerd
INFO[] libcontainerd: new containerd process, pid:
WARN[] containerd: low RLIMIT_NOFILE changing to max current= max=
INFO[] [graphdriver] using prior storage driver: overlay2
INFO[] Graph migration to content-addressability took 0.00 seconds
WARN[] Your kernel does not support cgroup memory limit
WARN[] Unable to find cpu cgroup in mounts
WARN[] Unable to find blkio cgroup in mounts
WARN[] Unable to find cpuset cgroup in mounts
WARN[] mountpoint for pids not found
Error starting daemon: Devices cgroup isn't mounted

https://serverfault.com/questions/767994/can-you-run-docker-natively-on-the-new-windows-10-ubuntu-bash-userspace

As of September 2016, No.

All current implementations of Docker on Windows use virtualisation, Docker 1.12 uses a hypervisor in Windows -thus removing the advantage of containerisation over virtualisation.

Docker needs more than just using Linux systems calls.

It needs process control groups (cgroups), a stackable filesystem (aufs), plus other Linux-based systems outside the kernel.

Neither cgroups nor aufs are natively in the Windows 10 kernel.

There is an implementation of Windows Server 2016 here: https://msdn.microsoft.com/en-gb/virtualization/windowscontainers/quick_start/quick_start_windows_server ..but this will only run some Windows services, e.g. IIS, and not Ubuntu

初步结论:应该WIN10内核无法完全模拟Linux的cgroup和aufs组件。

官网释疑:

[Cross Post] WSL Interoperability with Docker

https://blogs.msdn.microsoft.com/commandline/2017/12/08/cross-post-wsl-interoperability-with-docker/

https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly

apt install screenfetch

screenfetch

待验证脚本:https://files.cnblogs.com/files/rgqancy/WSL.js,下载后另存为txt。

最新文章

  1. runtime第三部分方法和消息
  2. Eclipse下无法自动编译,或者WEB-INF/classes目录下没文件,编译失败的解决办法(转载)
  3. Ubantu Linux 环境下编译c++程序
  4. MyBatis 入门(一)
  5. C# 时间类型
  6. 关于SQL2008 “不允许保存更改。您所做的更改要求删除并重新创建以下表。您对无法重新创建的标进行了更改或者启用了‘阻止保存要求重新创建表的更改’” 解决方案
  7. rpm命令详解
  8. 【USACO 1.2.2】方块转换
  9. dedecms 织梦ping服务插件 最新破解可用版
  10. 2015第6周三ztree的使用
  11. Oracle EBS-SQL (SYS-9):职责使用菜单.sql
  12. Android CTS測试Fail项改动总结(四)
  13. PHP. 01. C/S架构、B/S架构、服务器类型、服务器软件、HTTP协议/服务器、数据库、服务器web开发、PHP简介/常见语法、PHPheader()、 PHP_POST/GET数据获取和错误处理
  14. crm 动态一级二级菜单
  15. oracle 汉字转化拼音函数
  16. 彻底理解js中的&&和||
  17. 集合04_Set
  18. pip install GitHub package
  19. C++指针理解
  20. Python: ord()函数

热门文章

  1. 【洛谷】【二分查找】P1102 A−B数对
  2. Arduino IDE for ESP8266 项目(3)创建AP+STA
  3. ucml JS调用其它页面上的服务端方法
  4. 617. Merge Two Binary Trees
  5. Python-2.7 : 编码问题及encode与decode
  6. 分布式计算(四)Azkaban安装
  7. spring batch批量处理框架
  8. Vue2.x源码学习笔记-源码目录结构整理
  9. 网易云音乐 歌词制作软件 BesLyric (最新版本下载)
  10. JsonUtils序列化与反序列化工具