Docker设备映射器:找不到存储图像的位置

时间:2018-10-04 16:32:23

标签: docker amazon-ecs device-mapper

使用ECS AMI运行AWS ec2。我从私有存储库中提取了一个图像。图像被拉出,其大小为19.37GB。存储驱动程序是设备映射器。进行docker系统df -v显示:

docker system df -v
Images space usage:
REPOSITORY                TAG                 IMAGE ID            CREATED ago         SIZE                SHARED SIZE         UNIQUE SiZE         CONTAINERS
<none>                    <none>              3b0dc2504ca7        6 days ago ago      19.37GB             0B                  19.37GB             0
amazon/amazon-ecs-agent   latest              4f476fb2c2ad        2 weeks ago ago     30.01MB             0B                  30.01MB             0
amazon/amazon-ecs-pause   0.1.0               4ae0b20b511a        2 weeks ago ago     962.5kB             0B                  962.5kB             0


du -sh /var/lib/docker/*
20K     /var/lib/docker/builder
72K     /var/lib/docker/buildkit
132K    /var/lib/docker/containerd
4.0K    /var/lib/docker/containers
96K     /var/lib/docker/devicemapper
9.2M    /var/lib/docker/image
56K     /var/lib/docker/network
20K     /var/lib/docker/plugins
4.0K    /var/lib/docker/runtimes
4.0K    /var/lib/docker/swarm
4.0K    /var/lib/docker/tmp
4.0K    /var/lib/docker/trust
28K     /var/lib/docker/volumes

19.37GB存储在哪里?另外,码头工人的文档link说,层存储在/ var / lib / docker / storage-driver / layers /中,但我似乎找不到/ var / lib / docker / devicemapper / layers。另外,这是devicemapper目录的列表。

du -sh /var/lib/docker/devicemapper/*
88K     /var/lib/docker/devicemapper/metadata
29M     /var/lib/docker/devicemapper/mnt

docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 3
Server Version: 18.06.1-ce
Storage Driver: devicemapper
 Pool Name: docker-docker--pool
 Pool Blocksize: 524.3kB
 Base Device Size: 10.74GB
 Backing Filesystem: ext4
 Udev Sync Supported: true
 Data Space Used: 20.3GB
 Data Space Total: 318.3GB
 Data Space Available: 298GB
 Metadata Space Used: 1.815MB
 Metadata Space Total: 323MB
 Metadata Space Available: 321.1MB
 Thin Pool Minimum Free Space: 31.82GB
 Deferred Removal Enabled: true
 Deferred Deletion Enabled: true
 Deferred Deleted Device Count: 0
 Library Version: 1.02.135-RHEL7 (2016-11-16)

0 个答案:

没有答案