2017-01-29 52 views
0

我在與Ubuntu顛沛流離的虛擬機器上運行碼頭工人在Mac上登錄爲root用戶,我試圖從devicemapper切換到覆蓋,但我得到一個錯誤說:不支持Ubuntu切換文件系統到疊加的Docker?

[email protected]:/# service docker stop 
docker stop/waiting 
[email protected]:/# rm -rf /var/lib/docker 
[email protected]:/# 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 
[email protected]:/# 

我已經試過以下說明從:

http://www.projectatomic.io/blog/2015/06/notes-on-fedora-centos-and-docker-storage-drivers/ Unable to start Docker Service in Ubuntu 16.04

但他們都沒有爲我工作。

當我嘗試在以下文件:

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

我陷在步驟2,因爲grep的不從lsmod的返回任何 '疊加':

[email protected]:/# uname -r 
3.13.0-107-generic 
[email protected]:/# lsmod | grep overlay 
[email protected]:/# 


[email protected]:/# 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 
[email protected]:/# 

哪有我解決了這個問題?

回答

1

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

配置泊塢窗使用您的碼頭工人的主機必須運行Linux內核(最好是新的)與加載覆蓋內核模塊的版本3.18的覆蓋存儲驅動程序。對於overlay2驅動程序,您的內核版本必須爲4.0或更新。

你正在運行內核3.13,所以沒有骰子。我的建議是備份你的虛擬機,並嘗試將內核升級到更新的版本(我有14.04,並且有更近期的內核可用,雖然沒有測試過它們的工作情況),或者將你的Ubuntu VM升級到16.04

相關問題