Docker in Ubuntu 不支持切换文件系统到覆盖?

Docker in Ubuntu switching filesystem to overlay is not supported?

我 运行 docker 在一个流浪的虚拟盒子里 Ubuntu 在 Mac 上以 root 用户身份登录,我正在尝试从 devicemapper 切换覆盖但我收到一条错误消息:

root@vagrant-ubuntu-trusty-64:/# service docker stop
docker stop/waiting
root@vagrant-ubuntu-trusty-64:/# rm -rf /var/lib/docker
root@vagrant-ubuntu-trusty-64:/# docker daemon -s overlay
Command "daemon" is deprecated, and will be removed in Docker 1.16. Please run `dockerd` directly.
INFO[0000] libcontainerd: new containerd process, pid: 6788
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=4096
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
Error starting daemon: error initializing graphdriver: driver not supported
root@vagrant-ubuntu-trusty-64:/#

我已尝试按照以下说明进行操作:

http://www.projectatomic.io/blog/2015/06/notes-on-fedora-centos-and-docker-storage-drivers/

但它们都不适合我。

当我尝试按照以下文档进行操作时:

https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/

我卡在了第 2 步,因为 grep 没有 return 来自 lsmod 的任何 'overlay':

root@vagrant-ubuntu-trusty-64:/# uname -r
3.13.0-107-generic
root@vagrant-ubuntu-trusty-64:/# lsmod | grep overlay
root@vagrant-ubuntu-trusty-64:/#


root@vagrant-ubuntu-trusty-64:/# dockerd --storage-driver=overlay
INFO[0000] libcontainerd: new containerd process, pid: 6816
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=4096
ERRO[0001] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
Error starting daemon: error initializing graphdriver: driver not supported
root@vagrant-ubuntu-trusty-64:/#

我该如何解决这个问题?

来自https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#configure-docker-with-the-overlayoverlay2-storage-driver

To configure Docker to use the overlay storage driver your Docker host must be running version 3.18 of the Linux kernel (preferably newer) with the overlay kernel module loaded. For the overlay2 driver, the version of your kernel must be 4.0 or newer.

您是 运行 内核 3.13,所以没有骰子。我的建议是备份您的虚拟机并尝试将内核升级到更新的版本(我有 14.04 并且有更新的内核可用,尽管尚未测试它们的工作情况)或升级您的 Ubuntu VM到 16.04