• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Docker: failed to register layer: devmapper

Tigzy

Basic Pleskian
Hello,
I've just installed a Plesk Onyx server on Ubuntu 16.04.
I'm trying to create my first container, but I'm getting this error:

Code:
root@domain:/dev/mapper# docker run --name db -p 27017:27017 -d mongo:3.0 --smallfiles
Unable to find image 'mongo:3.0' locally
3.0: Pulling from library/mongo
d44a3b2e3fc2: Extracting [==================================================>] 37.22 MB/37.22 MB
1ec8041b61e0: Download complete
674b51c90aa8: Download complete
617e7bdecca8: Download complete
c93536272301: Download complete
f9969bcf65fb: Download complete
2b66a96bd7e9: Download complete
eeac55458bd8: Download complete
e9f7ec61700d: Download complete
docker: failed to register layer: devmapper: Error mounting '/dev/mapper/docker-9:1-401862-7865b188ab2993d155200a9b9f3fecb9502dfa79524df5657b18059590eff867' on '/var/lib/docker/devicemapper/mnt/7865b188ab2993d155200a9b9f3fecb9502dfa79524df5657b18059590eff867': invalid argument.
See 'docker run --help'.
root@domain:/dev/mapper#

I've tried to remove /var/lib/docker/, it doesn't help.
Any help?

docker info:
Code:
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.3
Storage Driver: devicemapper
 Pool Name: docker-9:1-401862-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 10.94 MB
 Data Space Total: 107.4 GB
 Data Space Available: 11.82 GB
 Metadata Space Used: 581.6 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.147 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.110 (2015-10-30)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: overlay null host bridge
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 3.14.32-xxxx-grs-ipv6-64
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 31.17 GiB
Name: domain.com
ID: PQYN:3QVR:QZGV:GF7B:PFGV:J6YG:5DWO:GMJ7:EFGE:4BRE:KJKN:K7T2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No kernel memory limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
Insecure Registries:
 127.0.0.0/8
 
Back
Top