在Ubuntu切换文件系统覆盖不支持的Docker?

我运行docker在Ubuntu的一个stream浪的虚拟框中以root用户身份login,我试图从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/ 无法在Ubuntu 16.04中启动Docker服务

但他们都不为我工作。

当我尝试按照以下文档:

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

我在第2步卡住了,因为grep不会从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

要将Dockerconfiguration为使用覆盖存储驱动程序,Docker主机必须运行加载了覆盖内核模块的Linux内核版本3.18(最好更新)。 对于overlay2驱动程序,您的内核版本必须是4.0或更新。

你正在运行内核3.13,所以没有骰子。 我的build议是备份你的虚拟机,并尝试将内核升级到一个更新的版本(我有14.04,有更近期的内核可用,虽然没有testing过它们的工作情况),或者升级你的Ubuntu VM到16.04