5

使用onssh进入我的 ec2 实例后,我尝试运行vagrantubuntu

sudo docker run -i -t ubuntu echo 'hello',但我收到此错误:

Error starting container da3124903fc4: Unable to load the AUFS module

我怎样才能加载这个AUFS module

我已经aufs-tools安装了。

4

3 回答 3

6

这有助于我安装 aufs,运行以下命令:

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

干杯!!

于 2013-10-18T09:13:07.603 回答
3

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-09-04T07:09:32.303 回答
1

对于那些在 2021 年及以后遇到这个问题的人,比如我自己在调试 docker-ce 20.* 问题时,docker 文档中的这个简介可能会有所帮助:

如果可能,overlay2 是推荐的存储驱动程序。第一次安装Docker时,默认使用overlay2。以前,aufs 在可用时默认使用,但现在不再如此。如果你想在以后的新安装中使用 aufs,你需要明确地配置它,你可能需要安装额外的包,比如 linux-image-extra。见 aufs。

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

于 2021-06-16T13:05:57.487 回答