Block layer component of the Linux kernel to create and manage virtual block devices atop of physical block devices. QUESTIONS MUST BE PROGRAMMING RELATED.
Questions tagged [device-mapper]
69 questions
299
votes
11 answers
How to analyze disk usage of a Docker container
I can see that Docker takes 12GB of my filesystem:
2.7G /var/lib/docker/vfs/dir
2.7G /var/lib/docker/vfs
2.8G /var/lib/docker/devicemapper/mnt
6.3G /var/lib/docker/devicemapper/devicemapper
9.1G /var/lib/docker/devicemapper
12G …
![](../../users/profiles/1563935.webp)
AlonL
- 5,373
- 3
- 29
- 31
87
votes
10 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…
![](../../users/profiles/564055.webp)
ming.kernel
- 3,005
- 1
- 19
- 29
40
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…
![](../../users/profiles/6077803.webp)
DenCowboy
- 10,114
- 24
- 80
- 168
18
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:…
![](../../users/profiles/1971057.webp)
loadaverage
- 942
- 1
- 8
- 15
9
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…
![](../../users/profiles/6288254.webp)
Youssouf Maiga
- 4,251
- 5
- 20
- 34
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…
![](../../users/profiles/1136762.webp)
sekipaolo
- 135
- 2
- 6
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…
![](../../users/profiles/283285.webp)
powo
- 370
- 4
- 14
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…
![](../../users/profiles/1705968.webp)
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…
![](../../users/profiles/2252811.webp)
Rashid Shaikh
- 183
- 11
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.…
![](../../users/profiles/2146052.webp)
bjonen
- 1,208
- 14
- 22
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…
![](../../users/profiles/6762032.webp)
Hs Kim
- 51
- 1
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"…
![](../../users/profiles/90777.webp)
lfaraone
- 44,680
- 16
- 48
- 70
2
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
…
![](../../users/profiles/9267748.webp)
Chandan Kashyap
- 43
- 4
2
votes
1 answer
According to the union file system, does image actually container another image?
In Docker, an image is a stack of Read-only image layers. We also know that images share layers or other images. My question is about how this sharing mechanism work.
Does an image have pointers to the Docker storage driver or do they actually…
![](../../users/profiles/6283262.webp)
ethankong113
- 317
- 4
- 11
2
votes
2 answers
how `docker cp` command works
The command docker cp is used to copy files from host machine to container and vice versa. This command works even if container is in stop state or exited. Docker uses layered approach for storing images and when we run container by using this…
![](../../users/profiles/4886861.webp)
Yogesh Jilhawar
- 3,489
- 6
- 26
- 46