device-mapper

How to analyze disk usage of a Docker container

对着背影说爱祢 提交于 2019-11-29 19:02:06
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 /var/lib/docker But, how do I know how this is distributed over the containers? I tried to attach to the containers by running (the new v1.3 command) docker exec -it <container_name> bash and then running 'df -h' to analyze the disk usage. It seems to be working, but not with containers that use 'volumes-from'. For example, I use a data-only container for MongoDB,

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

那年仲夏 提交于 2019-11-28 15:44:44
问题 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 /disk1/docker" Note that /disk/1 is using a completely different hard drive /dev/xvdi Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.8G 5.1G 2.6G 67% / devtmpfs 1.9G 108K 1.9G 1% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm /dev/xvdi 20G 5.3G 15G 27% /disk1 /dev

How to analyze disk usage of a Docker container

橙三吉。 提交于 2019-11-28 13:12:51
问题 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 /var/lib/docker But, how do I know how this is distributed over the containers? I tried to attach to the containers by running (the new v1.3 command) docker exec -it <container_name> bash and then running 'df -h' to analyze the disk usage. It seems to be working, but

Clean docker environment: devicemapper

狂风中的少年 提交于 2019-11-27 06:23:29
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 /var/lib/docker/ 30G docker/ I can each folder in my docker folder: Volumes (big, but that's normal in my case): /var/lib/docker# du -sh volumes/ 14G volumes/ Containers: /var/lib/docker# du -sh containers/ 3.2M containers/ Images: /var/lib/docker# du -sh image/ 5.8M image/ Devicemapper: /var/lib/docker# du -sh devicemapper/ 16G devicemapper/ /var/lib

Clean docker environment: devicemapper

邮差的信 提交于 2019-11-26 11:56:57
问题 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 /var/lib/docker/ 30G docker/ I can each folder in my docker folder: Volumes (big, but that\'s normal in my case): /var/lib/docker# du -sh volumes/ 14G volumes/ Containers: /var/lib/docker# du -sh containers/ 3.2M containers/ Images: /var/lib/docker# du -sh