Docker:启动容器时出错:无法加载 AUFS 模块

问题描述 投票:0回答:4

ssh
上使用
vagrant
进入我的 ec2 实例后,我尝试运行

ubuntu

,但我收到此错误:


sudo docker run -i -t ubuntu echo 'hello'


如何加载这个

Error starting container da3124903fc4: Unable to load the AUFS module


我已经安装了

AUFS module

    

ubuntu amazon-ec2 vagrant docker
4个回答
6
投票

aufs-tools

干杯!!


3
投票
sudo apt-get install lxc wget bsdtar curl sudo apt-get install linux-image-extra-$(uname -r) sudo modprobe aufs

并使用以下命令重新安装了它:


apt-get purge lxc-docker


我收到以下错误,但安装继续并完成。

curl https://get.docker.io | sudo sh

当我运行
Ensuring basic dependencies are installed... Looking in /proc/filesystems to see if we have AUFS support... Ahem, it looks like the current kernel does not support AUFS. Let's see if we can load the AUFS module with modprobe... FATAL: Module aufs not found. Ahem, things didn't turn out as expected.

时,结果是

docker run ubuntu echo hello
,所以看起来一切都很好。
    


3
投票

如果可能,建议使用overlay2 存储驱动程序。第一次安装Docker时,默认使用overlay2。以前,aufs 在可用时默认使用,但现在不再是这种情况。如果您想在以后的新安装中使用 aufs,则需要显式配置它,并且可能需要安装额外的软件包,例如 linux-image-extra。参见 aufs。

来源:
https://docs.docker.com/storage/storagedriver/select-storage-driver/#docker-engine---community


0
投票

hello

© www.soinside.com 2019 - 2024. All rights reserved.