Questions tagged [device-mapper]

Block layer component of the Linux kernel to create and manage virtual block devices atop of physical block devices. QUESTIONS MUST BE PROGRAMMING RELATED.

72 questions
117
votes
14 answers

Why is docker image eating up my disk space that is not used by docker

I have setup docker and I have used completely different block device to store docker's system data: [root@blink1 /]# cat /etc/sysconfig/docker # /etc/sysconfig/docker other_args="-H tcp://0.0.0.0:9367 -H unix:///var/run/docker.sock -g…
ming.kernel
  • 3,365
  • 3
  • 21
  • 32
47
votes
4 answers

Clean docker environment: devicemapper

I have a docker environment with 2 containers (Jenkins and Nexus, both with their own named volume). I have a daily cron-job which deletes unused containers and images. This is working fine. But the problem is inside my devicemapper: du -sh…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
20
votes
5 answers

Can't run Docker container due device mapper error

I just can't create and run new containers in Docker anymore. But in the same time a can run previously created containers. When I try to do something like this: [user@host ~ ] docker run --name=fpm-5.3 debian:jessie 2014/07/12 07:34:08 Error:…
loadaverage
  • 1,028
  • 1
  • 11
  • 16
11
votes
1 answer

How to clean docker devicemapper folder properly ?

I have some problem about the storage. The folder /var/lib/docker/devicemapper/ is taking 50% of my storage. In the folder /var/lib/docker/devicemapper/mnt, I have many empty folders. How can I properly clean docker devicemapper and remove all…
Youssouf Maiga
  • 6,701
  • 7
  • 26
  • 42
7
votes
1 answer

Share docker images between hosts with NFS

I'building a mesosphere infrastructure on AWS instances with 3 master servers (running zookeeper, mesos-master, marathon and haproxy) and N slaves (running mesos-slave and docker). If I run the same container on different slaves marathon downloads…
sekipaolo
  • 135
  • 2
  • 7
7
votes
1 answer

How to tell Docker to use dm/LVM backend for volumes instead of vfs

I recently heard (from a RedHat guy) that "direct-LVM"(devicemapper) is the recommended storage-backend for production setups, so I wanted to try that out on a CentOS 7 VM. (where loopback-LVM seems to be the default). So I created a separate…
powo
  • 460
  • 1
  • 6
  • 17
6
votes
0 answers

How do I clear a thinpool device for docker

I am running docker on a Redhat system with devicemapper and thinpool device just as recommended for production systems. Now when I want to reinstall docker I need two steps: 1) remove docker directory (in my case /area51/docker) 2) clear thinpool…
Tom
  • 73
  • 5
6
votes
1 answer

create device mapper target

I am trying to implement device mapper target by referring to the already existing ones dm-linear, dm-snapshot, dm-cache etc. In my implementation, I need to perform a read/modify/write operation on a certain sector range. Since the device mapper…
Rashid Shaikh
  • 395
  • 4
  • 12
5
votes
1 answer

docker - driver "devicemapper" failed to remove root filesystem after process in container killed

I am using Docker version 17.06.0-ce on Redhat with devicemapper storage. I am launching a container running a long-running service. The master process inside the container sometimes dies for whatever reason. I get the following error message.…
bjonen
  • 1,503
  • 16
  • 24
5
votes
0 answers

How to mount image in docker whose storage driver is devicemapper

I wonder if I can mount an image(ex. ubuntu image) in docker whose storage driver is devicemapper "without executing it as a container". Actually I succeeded to mount the filesystem in a container like this. type "docker run -it ubuntu" type "df…
Hs Kim
  • 61
  • 1
5
votes
1 answer

Implications of exposing /var/lib/docker over NFS to serve hosts with limited memory

What are the implications of exporting /var/lib/docker over NFS? The idea is to store the docker images in a server and export it to hosts which has limited memory to store and run containers. This would be useful to avoid having each host download…
koshyg
  • 121
  • 2
  • 5
4
votes
1 answer

docker devicemapper data file size increasing exponentially and consuming my host disk 90%

My Docker details Client: Version: 1.11.0 API version: 1.23 Go version: go1.7.1 Git commit: 4dc5990 Built: OS/Arch: linux/amd64 Server: Version: 1.11.0 API version: 1.23 Go version: go1.7.1 Git commit: 4dc5990 …
3
votes
1 answer

LUKS and dm-crypt distinction responsibilities

Reading through the documentation of both dm-crypt and LUKS, I understand that LUKS is a format specification to allow FDE, and that dm-crypt is a dm target which allows encryption / decryption of writes / reads to the block device. However, I'm…
Jasper
  • 302
  • 3
  • 11
2
votes
2 answers

Mount LVM overlays/snapshots?

I'm trying to programmatically mount a disk image created with the Fedora LiveUSB creator, and I'm encountering some issues. From what I've been told, it's very difficult to mount LVM snapshots outside of the host system. I have both the "pristine"…
lfaraone
  • 49,562
  • 17
  • 52
  • 70
2
votes
0 answers

How to solve /dev/mapper/docker full?

I'm working on some docker container. While trying to install some python packages /dev/mapper/docker gets filled. I read Clean docker environment: devicemapper, but this would stop ruining containers and impact the current workflow. How can I…
catsarecats
  • 89
  • 1
  • 1
  • 5
1
2 3 4 5