Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker: Error starting container: Unable to load the AUFS module

After sshing into my ec2 instance using vagrant on ubuntu, I tried running

sudo docker run -i -t ubuntu echo 'hello', but I get this error:

Error starting container da3124903fc4: Unable to load the AUFS module

How can I load this AUFS module?

I already have aufs-tools installed.

like image 707
Rose Perrone Avatar asked Sep 04 '13 06:09

Rose Perrone


2 Answers

I ran apt-get purge lxc-docker and reinstalled it with the following command:

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

I got the following error, but the installation continued and finished.

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.

When I run docker run ubuntu echo hello the result is hello, so it looks like everything is alright.

like image 44
Rose Perrone Avatar answered Sep 22 '22 21:09

Rose Perrone


This has helped me in installing aufs, run the following commands:

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

Cheers!!

like image 148
srikanth Nutigattu Avatar answered Sep 22 '22 21:09

srikanth Nutigattu