Docker: Container startup error: unable to load AUFS module

After ssh entering my ec2 instance using vagrant in ubuntu I tried to run

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.

+4
source share
2 answers

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

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

I received the following error, but the installation continued and ended.

 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 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 everything looks good.

+4
source

This 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 

Hooray!!

+6
source

Source: https://habr.com/ru/post/1500449/


All Articles