首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Docker:启动容器错误:无法加载AUFS模块

Docker:启动容器错误:无法加载AUFS模块
EN

Stack Overflow用户
提问于 2013-09-04 06:51:16
回答 3查看 9.6K关注 0票数 5

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

sudo docker run -i -t ubuntu echo 'hello',但我得到了这个错误:

Error starting container da3124903fc4: Unable to load the AUFS module

如何加载这个AUFS module

我已经安装了aufs-tools

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2013-09-04 07:09:32

我运行了apt-get purge lxc-docker并使用以下命令重新安装了它:

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

我得到了以下错误,但安装仍在继续并完成。

代码语言:javascript
复制
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时,结果是hello,所以看起来一切正常。

票数 3
EN

Stack Overflow用户

发布于 2013-10-18 09:13:07

这帮助我安装了aufs,运行以下命令:

代码语言:javascript
复制
sudo apt-get install lxc wget bsdtar curl
sudo apt-get install linux-image-extra-$(uname -r)
sudo modprobe aufs

干杯!!

票数 6
EN

Stack Overflow用户

发布于 2021-06-16 13:05:57

对于那些在2021年及以后偶然发现这种情况的人,比如我在调试docker-ce 20.*问题时,从码头文档中脱口而出可能会有所帮助:

如果可能的话,overlay2是推荐的存储驱动程序。第一次安装Docker时,默认使用overlay2。以前,在可用时默认使用aufs,但现在不再是这样了。如果您想在未来的新安装中使用aufs,您需要显式地配置它,并且可能需要安装额外的包,例如linux映像额外的包。见奥夫斯。

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18607200

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档