Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
failed to register layer: devmapper: Error mounting / Can't mount images #29798
Description Can't mount images
Can't mount any images in my docker installation
Steps to reproduce the issue:
I've googled it, but haven't find any solution. I already tried to rm the /var/lib/docker folder, without any change.
Additional environment details (AWS, VirtualBox, physical, etc.):
Has anybody an idea or a workaround for me?
First of all, I would not recommend running with devicemapper on Ubuntu; the default storage driver is aufs, and on modern (4.x) kernels, the overlay2 storage driver is a good choice.
It looks like the instructions on DigitalOcean are incomplete, and don't mention the requirements for aufs (see the official documentation here: https://docs.docker.com/engine/installation/linux/ubuntulinux/)
Devicemapper on loop back devices is especially discouraged (also see the warning that's output in
However, it looks like you are running on a non-standard installation with a kernel version that doesn't match with ubuntu 16.04; Ubuntu 16.04 ships with kernel 4.4 (https://wiki.ubuntu.com/XenialXerus/ReleaseNotes), but your systemd runs an old kernel version (3.14).
I highly suspect this is the reason things fail, so suggest to make sure to install the kernel version that's provided by Ubuntu, or contact your provider.
Given that we only support docker on official kernel versions, I'll close this issue, but happy to answer additional questions
Some providers include a customized kernel on their machines, the Kernel listed by @nessor looks like the OVH provider uses with Ubuntu in their datacenters.
To update the OVH Kernel to the generic one just do the following
The new kernel version will be 4.4.0-66-generic:
Try now the docker run and enjoy