Error: device mapper prerequisites not met

I’m using ubuntu 16.04 64bit
I was using docker for some firmware work.
This is the following error:

/dev/mapper/control: open failed: Operation not permitted
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper (unknown version) and kernel driver (unknown version).
device mapper prerequisites not met
Please check the makeImage function

Did you build a custom kernel for your system? You need to make sure that it includes support for at least one of the Docker storage backends (and if that’s not the default devicemapper, you probably also need to reconfigure Docker to know that as well).