Victor Rocheron Victor Rocheron - 1 month ago 24
Linux Question

CentOs 7 : Docker -d "Error running deviceCreate (CreatePool)"

I'm building some CentOS vm with vmware, with no acces to internet, so I've download and made local repositories, including this one
Then I have installed docker-engine.x86_64, and when starting the docker daemon, I get the following errors :

[root]# dockerd
DEBU[0000] docker group found. gid: 993
...
...
DEBU[0001] Error retrieving the next available loopback: open /dev/loop-control: no such device
ERRO[0001] **There are no more loopback devices available.**
ERRO[0001] [graphdriver] prior storage driver "devicemapper" failed: loopback attach failed
DEBU[0001] Cleaning up old mountid : start.
FATA[0001] Error starting daemon: error initializing graphdriver: loopback attach failed


Edit :

After manually add the loop module which control loop device with this command :

insmod /lib/modules/3.10.0-327.36.2.el7.x86_64/kernel/drivers/block/loop.ko


The error changes to :

[graphdriver] prior storage driver "devicemapper" failed: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed


I've read that it could be because I have not enough space disk, I think it's not that, any idea ?

[root]# df -k .
Filesystem blocs de 1K Used Available Used Mounted on
/dev/mapper/centos-root 51887356 2436256 49451100 5% /


Thanks for your help

Answer

Finaly find another solution, instead of using loopback (Which is not recommended), I followed instruction here