在使用 vagrant
登录到我的 ubuntu
上的 ec2 实例后,我尝试运行以下命令:
sudo docker run -i -t ubuntu echo 'hello'
,但是我收到了以下错误信息:
Error starting container da3124903fc4: Unable to load the AUFS module
我该如何加载这个 AUFS module
?
我已经安装了 aufs-tools
。
在使用 vagrant
登录到我的 ubuntu
上的 ec2 实例后,我尝试运行以下命令:
sudo docker run -i -t ubuntu echo 'hello'
,但是我收到了以下错误信息:
Error starting container da3124903fc4: Unable to load the AUFS module
我该如何加载这个 AUFS module
?
我已经安装了 aufs-tools
。
这有助于我安装aufs,运行以下命令:
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
时,结果是hello
,所以看起来一切都很好。如果可能的话,overlay2是推荐使用的存储驱动程序。在首次安装Docker时,默认使用overlay2。以前,当aufs可用时,默认使用aufs,但现在不再是这种情况。如果您想在新的安装中使用aufs,则需要显式配置它,并且您可能需要安装额外的软件包,例如linux-image-extra。请参见aufs。
来源:https://docs.docker.com/storage/storagedriver/select-storage-driver/#docker-engine---community
apt-get install aufs-dkms
modprobe aufs
dpkg --configure -a
cat /etc/lsb-release ; uname -r
可以告诉你。 - Alister Bulman