Error pulling docker image - Error mounting /dev/mapper/docker

Hi!

I’m trying to pull a docker image and get the following error:

gunnar1:/home/gugrim # docker pull centos
Using default tag: latest
latest: Pulling from library/centos
fa5be2806d4c: Extracting ==================================================>]     32 B/32 B
0cd86ce0a197: Downloading >                                                  ] 539.7 kB/62.91 MB
e9407f1d4b65: Download complete 
c9853740aa05: Download complete 
e9fa5d3a0d0e: Download complete 
Pulling repository docker.io/library/centos
ce20c473cd8a: Error pulling image (latest) from docker.io/library/centos, Error mounting '/dev/mapper/docker-8:18-2044790-47d44cb6f252ea4f6aecf8a447972de5d9f9f2e2bec549a2f1d8f92557f4d05a' on '/var/lib/docker/devicemapper/mnt/47d44cb6f252ea4f6aecf8a447972de5d9f9f2e2bec549a2f1d8f92557f4d05a': invalid argument bec549a2f1d8f92557f4d05a': invalid argument 
Error pulling image (latest) from docker.io/library/centos, Error mounting '/dev/mapper/docker-8:18-2044790-47d44cb6f252ea4f6aecf8a447972de5d9f9f2e2bec549a2f1d8f92557f4d05a' on '/var/lib/docker/devicemapper/mnt/47d44cb6f252ea4f6aecf8a447972de5d9f9f2e2bec549a2f1d8f92557f4d05a': invalid argument

Same problem with an ubuntu image.

docker info shows this:

Containers: 0
Images: 0
Storage Driver: devicemapper
 Pool Name: docker-8:18-2044790-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: extfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 620 MB
 Data Space Total: 107.4 GB
 Data Space Available: 23.79 GB
 Metadata Space Used: 950.3 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.147 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.03.01 (2011-10-15)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.16.7-29-desktop
Operating System: openSUSE 13.2 (Harlequin) (x86_64)
CPUs: 8
Total Memory: 23.55 GiB
Name: gunnar1.home
ID: YDZU:OVSL:PQAA:ZDGH:ZCT2:6GIC:HNAC:X7KL:RVTT:7LZW:JQTF:MQQ2
WARNING: No swap limit support

And uname -a:

Linux gunnar1.home 3.16.7-29-desktop #1 SMP PREEMPT Fri Oct 23 00:46:04 UTC 2015 (6be6a97) x86_64 x86_64 x86_64 GNU/Linux

Is docker supposed to work on OpenSUSE 13.2? Using the repository version, 1.8.3-43.1.

TIA,
Gunnar

Looks like a full disk. What filesystem is / - and if it’s btrfs, how
many snapshots does snapper show?

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

No plenty of space and ext3. Found another article, [solved] docker: Error mounting: invalid argument / System Administration / Arch Linux Forums, about this problem. I wiped the /var/lib/docker directory and symlinked it to an ext4 partition. Now it works.

On Wed, 11 Nov 2015 07:16:02 +0000, gugrim wrote:

> hendersj;2736700 Wrote:
>> Looks like a full disk. What filesystem is / - and if it’s btrfs, how
>> many snapshots does snapper show?
>>
>> Jim
>>
>>
>>
>> –
>> Jim Henderson openSUSE Forums Administrator Forum Use Terms &
>> Conditions at http://tinyurl.com/openSUSE-T-C
>
> No plenty of space and ext3. Found another article,
> https://bbs.archlinux.org/viewtopic.php?id=189869, about this problem.
> I wiped the /var/lib/docker directory and symlinked it to an ext4
> partition. Now it works.

Glad you got it fixed.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

For anyone following this,
Based on the reference, the problem seems to be a docker library file and not that the symlink was created.

So,
Although untested it’s likely that the universal solution to mysterious issues should probably have worked which is to simply update the system

zypper up

And, if that doesn’t work, force re-installing docker should have fixed the problem

zypper in -f docker

TSU