Open stefjoosten opened 7 years ago
In my case I fixed it with this way, the metadata file was broken because it reached the limit of the hard disk and the file was corrupted Fix it with the following steps: ∘ systemctl stop docker ∘ thin_check --clear-needs-check-flag /var/lib/docker/devicemapper/devicemapper/metadata ∘ thin_check /var/lib/docker/devicemapper/devicemapper/metadata ∘ systemctl start docker
You can find more information at: https://bodhileafy.wordpress.com/2018/04/20/docker-error-running-devicecreate-createsnapdevice-dm_task_run-failed/
I have same error message, but while executing the docker pull
command.
OS: AntiX, based on Debian (codename: Bookworm)
Expected behavior
I am running a docker installation. On one Linux server (called Wolfram) it works. I would expect it to work on another Linux server as well. However on server lnx-hrl-148v it does NOT work.
Actual behavior
After downloading part of the required images, building fails with the message "failed to register layer: devicemapper: Error running deviceCreate (createSnapDevice) dm_task_run failed". Is there anyone who can explain this?
I have no clue as to what is wrong here. I have checked that the disk space is sufficient. The amount of memory in both machines is the same.
Information
The installation works on machine Wolfram
The docker client and server on Wolfram have identical versions:
The installation fails on lnx-hrl-148v, which has the following specs:
Both the client and the server on lnx-hrl-148v have the same version:
The docker files I used for installation can be found on https://github.com/AmpersandTarski/docker-ampersand.
Steps to reproduce the behavior
Using a bash CLI through putty (an SSH-client) on server lnx-hrl-148v I did:
git clone https://github.com/AmpersandTarski/docker-ampersand/ /home/$(whoami)/docker-ampersand
cd ~/docker-ampersand
docker build -t ampersand:latest ampersand
This yielded: