在使用ssh在ubuntu上使用vagrant进入ec2实例后,我尝试运行
sudo docker run -i -t ubuntu echo 'hello',但我得到了这个错误:
Error starting container da3124903fc4: Unable to load the AUFS module
如何加载这个AUFS module
我已经安装了aufs-tools。
发布于 2013-09-04 07:09:32
我运行了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时,结果是hello,所以看起来一切正常。
发布于 2013-10-18 09:13:07
这帮助我安装了aufs,运行以下命令:
sudo apt-get install lxc wget bsdtar curl
sudo apt-get install linux-image-extra-$(uname -r)
sudo modprobe aufs干杯!!
发布于 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
https://stackoverflow.com/questions/18607200
复制相似问题