Get data usage information Run in API Explorer
GET
/system/df
curl \
--request GET 'http://api.example.com/v1.49/system/df'
Response examples (200)
{
"Images": [
{
"Id": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749",
"Size": 1092588,
"Labels": {},
"Created": 1466724217,
"ParentId": "",
"RepoTags": [
"busybox:latest"
],
"Containers": 1,
"SharedSize": 0,
"RepoDigests": [
"busybox@sha256:a59906e33509d14c036c8678d687bd4eec81ed7c4b8ce907b888c607f6a1e0e6"
]
}
],
"Volumes": [
{
"Name": "my-volume",
"Scope": "local",
"Driver": "local",
"Labels": null,
"Options": null,
"UsageData": {
"Size": 10920104,
"RefCount": 2
},
"Mountpoint": "/var/lib/docker/volumes/my-volume/_data"
}
],
"BuildCache": [
{
"ID": "hw53o5aio51xtltp5xjp8v7fx",
"Size": 0,
"Type": "regular",
"InUse": false,
"Shared": true,
"Parents": [],
"CreatedAt": "2021-06-28T13:31:01.474619385Z",
"LastUsedAt": "2021-07-07T22:02:32.738075951Z",
"UsageCount": 26,
"Description": "pulled from docker.io/library/debian@sha256:234cb88d3020898631af0ccbbcca9a66ae7306ecd30c9720690858c1b007d2a0"
},
{
"ID": "ndlpt0hhvkqcdfkputsk4cq9c",
"Size": 51,
"Type": "regular",
"InUse": false,
"Shared": true,
"Parents": [
"ndlpt0hhvkqcdfkputsk4cq9c"
],
"CreatedAt": "2021-06-28T13:31:03.002625487Z",
"LastUsedAt": "2021-07-07T22:02:32.773909517Z",
"UsageCount": 26,
"Description": "mount / from exec /bin/sh -c echo 'Binary::apt::APT::Keep-Downloaded-Packages \"true\";' > /etc/apt/apt.conf.d/keep-cache"
}
],
"Containers": [
{
"Id": "e575172ed11dc01bfce087fb27bee502db149e1a0fad7c296ad300bbff178148",
"Image": "busybox",
"Names": [
"/top"
],
"Ports": [],
"State": "exited",
"Labels": {},
"Mounts": [],
"Status": "Exited (0) 56 minutes ago",
"Command": "top",
"Created": 1472592424,
"ImageID": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749",
"HostConfig": {
"NetworkMode": "default"
},
"SizeRootFs": 1092588,
"NetworkSettings": {
"Networks": {
"bridge": {
"Links": null,
"Aliases": null,
"Gateway": "172.18.0.1",
"IPAddress": "172.18.0.2",
"NetworkID": "d687bc59335f0e5c9ee8193e5612e8aee000c8c62ea170cfb99c098f95899d92",
"EndpointID": "8ed5115aeaad9abb174f68dcf135b49f11daf597678315231a32ca28441dec6a",
"IPAMConfig": null,
"MacAddress": "02:42:ac:12:00:02",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0
}
}
}
}
],
"LayersSize": 1092588
}
Response examples (200)
{
"Images": [
{
"Id": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749",
"Size": 1092588,
"Labels": {},
"Created": 1466724217,
"ParentId": "",
"RepoTags": [
"busybox:latest"
],
"Containers": 1,
"SharedSize": 0,
"RepoDigests": [
"busybox@sha256:a59906e33509d14c036c8678d687bd4eec81ed7c4b8ce907b888c607f6a1e0e6"
]
}
],
"Volumes": [
{
"Name": "my-volume",
"Scope": "local",
"Driver": "local",
"Labels": null,
"Options": null,
"UsageData": {
"Size": 10920104,
"RefCount": 2
},
"Mountpoint": "/var/lib/docker/volumes/my-volume/_data"
}
],
"BuildCache": [
{
"ID": "hw53o5aio51xtltp5xjp8v7fx",
"Size": 0,
"Type": "regular",
"InUse": false,
"Shared": true,
"Parents": [],
"CreatedAt": "2021-06-28T13:31:01.474619385Z",
"LastUsedAt": "2021-07-07T22:02:32.738075951Z",
"UsageCount": 26,
"Description": "pulled from docker.io/library/debian@sha256:234cb88d3020898631af0ccbbcca9a66ae7306ecd30c9720690858c1b007d2a0"
},
{
"ID": "ndlpt0hhvkqcdfkputsk4cq9c",
"Size": 51,
"Type": "regular",
"InUse": false,
"Shared": true,
"Parents": [
"ndlpt0hhvkqcdfkputsk4cq9c"
],
"CreatedAt": "2021-06-28T13:31:03.002625487Z",
"LastUsedAt": "2021-07-07T22:02:32.773909517Z",
"UsageCount": 26,
"Description": "mount / from exec /bin/sh -c echo 'Binary::apt::APT::Keep-Downloaded-Packages \"true\";' > /etc/apt/apt.conf.d/keep-cache"
}
],
"Containers": [
{
"Id": "e575172ed11dc01bfce087fb27bee502db149e1a0fad7c296ad300bbff178148",
"Image": "busybox",
"Names": [
"/top"
],
"Ports": [],
"State": "exited",
"Labels": {},
"Mounts": [],
"Status": "Exited (0) 56 minutes ago",
"Command": "top",
"Created": 1472592424,
"ImageID": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749",
"HostConfig": {
"NetworkMode": "default"
},
"SizeRootFs": 1092588,
"NetworkSettings": {
"Networks": {
"bridge": {
"Links": null,
"Aliases": null,
"Gateway": "172.18.0.1",
"IPAddress": "172.18.0.2",
"NetworkID": "d687bc59335f0e5c9ee8193e5612e8aee000c8c62ea170cfb99c098f95899d92",
"EndpointID": "8ed5115aeaad9abb174f68dcf135b49f11daf597678315231a32ca28441dec6a",
"IPAMConfig": null,
"MacAddress": "02:42:ac:12:00:02",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0
}
}
}
}
],
"LayersSize": 1092588
}
Response examples (500)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}