|
@@ -1565,11 +1565,11 @@ Upload a tar archive to be extracted to a path in the filesystem of container
|
|
- **500** – server error
|
|
- **500** – server error
|
|
|
|
|
|
|
|
|
|
-### Prune unused containers
|
|
|
|
|
|
+### Prune stopped containers
|
|
|
|
|
|
`POST /containers/prune`
|
|
`POST /containers/prune`
|
|
|
|
|
|
-Delete unused containers
|
|
|
|
|
|
+Delete stopped containers
|
|
|
|
|
|
**Example request**:
|
|
**Example request**:
|
|
|
|
|
|
@@ -1584,12 +1584,12 @@ Delete unused containers
|
|
HTTP/1.1 200 OK
|
|
HTTP/1.1 200 OK
|
|
Content-Type: application/json
|
|
Content-Type: application/json
|
|
|
|
|
|
- {
|
|
|
|
- "ContainersDeleted": [
|
|
|
|
- "e575172ed11dc01bfce087fb27bee502db149e1a0fad7c296ad300bbff178148"
|
|
|
|
- ],
|
|
|
|
- "SpaceReclaimed": 109
|
|
|
|
- }
|
|
|
|
|
|
+ {
|
|
|
|
+ "ContainersDeleted": [
|
|
|
|
+ "e575172ed11dc01bfce087fb27bee502db149e1a0fad7c296ad300bbff178148"
|
|
|
|
+ ],
|
|
|
|
+ "SpaceReclaimed": 109
|
|
|
|
+ }
|
|
|
|
|
|
**Status codes**:
|
|
**Status codes**:
|
|
|
|
|
|
@@ -2235,7 +2235,7 @@ Delete unused images
|
|
Content-Type: application/json
|
|
Content-Type: application/json
|
|
|
|
|
|
{
|
|
{
|
|
- "DanglingOnly": false,
|
|
|
|
|
|
+ "DanglingOnly": false
|
|
}
|
|
}
|
|
|
|
|
|
**Example response**:
|
|
**Example response**:
|
|
@@ -2243,27 +2243,27 @@ Delete unused images
|
|
HTTP/1.1 200 OK
|
|
HTTP/1.1 200 OK
|
|
Content-Type: application/json
|
|
Content-Type: application/json
|
|
|
|
|
|
- {
|
|
|
|
- "ImagesDeleted": [
|
|
|
|
- {
|
|
|
|
- "Untagged": "busybox:latest"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "Untagged": "busybox@sha256:a59906e33509d14c036c8678d687bd4eec81ed7c4b8ce907b888c607f6a1e0e6"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "Deleted": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "Deleted": "sha256:8ac8bfaff55af948c796026ee867448c5b5b5d9dd3549f4006d9759b25d4a893"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
- "SpaceReclaimed": 1092588
|
|
|
|
- }
|
|
|
|
|
|
+ {
|
|
|
|
+ "ImagesDeleted": [
|
|
|
|
+ {
|
|
|
|
+ "Untagged": "busybox:latest"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "Untagged": "busybox@sha256:a59906e33509d14c036c8678d687bd4eec81ed7c4b8ce907b888c607f6a1e0e6"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "Deleted": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "Deleted": "sha256:8ac8bfaff55af948c796026ee867448c5b5b5d9dd3549f4006d9759b25d4a893"
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "SpaceReclaimed": 1092588
|
|
|
|
+ }
|
|
|
|
|
|
**JSON parameters**:
|
|
**JSON parameters**:
|
|
|
|
|
|
-- **DanglingOnly**: if true only delete unused AND untagged images
|
|
|
|
|
|
+- **DanglingOnly**: if `true` only delete unused *and* untagged images. Default to `false` if omitted
|
|
|
|
|
|
**Status codes**:
|
|
**Status codes**:
|
|
|
|
|
|
@@ -2514,65 +2514,65 @@ Return docker data usage information
|
|
|
|
|
|
**Example response**:
|
|
**Example response**:
|
|
|
|
|
|
- {
|
|
|
|
- "LayersSize": 1092588,
|
|
|
|
- "Images": [
|
|
|
|
- {
|
|
|
|
- "Id": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749",
|
|
|
|
- "ParentId": "",
|
|
|
|
- "RepoTags": [
|
|
|
|
- "busybox:latest"
|
|
|
|
- ],
|
|
|
|
- "RepoDigests": [
|
|
|
|
- "busybox@sha256:a59906e33509d14c036c8678d687bd4eec81ed7c4b8ce907b888c607f6a1e0e6"
|
|
|
|
- ],
|
|
|
|
- "Created": 1466724217,
|
|
|
|
- "Size": 1092588,
|
|
|
|
- "SharedSize": 0,
|
|
|
|
- "VirtualSize": 1092588,
|
|
|
|
- "Labels": {},
|
|
|
|
- "Containers": 1
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
- "Containers": [
|
|
|
|
- {
|
|
|
|
- "Id": "e575172ed11dc01bfce087fb27bee502db149e1a0fad7c296ad300bbff178148",
|
|
|
|
- "Names": [
|
|
|
|
- "/top"
|
|
|
|
- ],
|
|
|
|
- "Image": "busybox",
|
|
|
|
- "ImageID": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749",
|
|
|
|
- "Command": "top",
|
|
|
|
- "Created": 1472592424,
|
|
|
|
- "Ports": [],
|
|
|
|
- "SizeRootFs": 1092588,
|
|
|
|
- "Labels": {},
|
|
|
|
- "State": "exited",
|
|
|
|
- "Status": "Exited (0) 56 minutes ago",
|
|
|
|
- "HostConfig": {
|
|
|
|
- "NetworkMode": "default"
|
|
|
|
- },
|
|
|
|
- "NetworkSettings": {
|
|
|
|
- "Networks": {
|
|
|
|
- "bridge": {
|
|
|
|
- "IPAMConfig": null,
|
|
|
|
- "Links": null,
|
|
|
|
- "Aliases": null,
|
|
|
|
- "NetworkID": "d687bc59335f0e5c9ee8193e5612e8aee000c8c62ea170cfb99c098f95899d92",
|
|
|
|
- "EndpointID": "8ed5115aeaad9abb174f68dcf135b49f11daf597678315231a32ca28441dec6a",
|
|
|
|
- "Gateway": "172.18.0.1",
|
|
|
|
- "IPAddress": "172.18.0.2",
|
|
|
|
- "IPPrefixLen": 16,
|
|
|
|
- "IPv6Gateway": "",
|
|
|
|
- "GlobalIPv6Address": "",
|
|
|
|
- "GlobalIPv6PrefixLen": 0,
|
|
|
|
- "MacAddress": "02:42:ac:12:00:02"
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- "Mounts": []
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ {
|
|
|
|
+ "LayersSize": 1092588,
|
|
|
|
+ "Images": [
|
|
|
|
+ {
|
|
|
|
+ "Id": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749",
|
|
|
|
+ "ParentId": "",
|
|
|
|
+ "RepoTags": [
|
|
|
|
+ "busybox:latest"
|
|
|
|
+ ],
|
|
|
|
+ "RepoDigests": [
|
|
|
|
+ "busybox@sha256:a59906e33509d14c036c8678d687bd4eec81ed7c4b8ce907b888c607f6a1e0e6"
|
|
|
|
+ ],
|
|
|
|
+ "Created": 1466724217,
|
|
|
|
+ "Size": 1092588,
|
|
|
|
+ "SharedSize": 0,
|
|
|
|
+ "VirtualSize": 1092588,
|
|
|
|
+ "Labels": {},
|
|
|
|
+ "Containers": 1
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "Containers": [
|
|
|
|
+ {
|
|
|
|
+ "Id": "e575172ed11dc01bfce087fb27bee502db149e1a0fad7c296ad300bbff178148",
|
|
|
|
+ "Names": [
|
|
|
|
+ "/top"
|
|
|
|
+ ],
|
|
|
|
+ "Image": "busybox",
|
|
|
|
+ "ImageID": "sha256:2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749",
|
|
|
|
+ "Command": "top",
|
|
|
|
+ "Created": 1472592424,
|
|
|
|
+ "Ports": [],
|
|
|
|
+ "SizeRootFs": 1092588,
|
|
|
|
+ "Labels": {},
|
|
|
|
+ "State": "exited",
|
|
|
|
+ "Status": "Exited (0) 56 minutes ago",
|
|
|
|
+ "HostConfig": {
|
|
|
|
+ "NetworkMode": "default"
|
|
|
|
+ },
|
|
|
|
+ "NetworkSettings": {
|
|
|
|
+ "Networks": {
|
|
|
|
+ "bridge": {
|
|
|
|
+ "IPAMConfig": null,
|
|
|
|
+ "Links": null,
|
|
|
|
+ "Aliases": null,
|
|
|
|
+ "NetworkID": "d687bc59335f0e5c9ee8193e5612e8aee000c8c62ea170cfb99c098f95899d92",
|
|
|
|
+ "EndpointID": "8ed5115aeaad9abb174f68dcf135b49f11daf597678315231a32ca28441dec6a",
|
|
|
|
+ "Gateway": "172.18.0.1",
|
|
|
|
+ "IPAddress": "172.18.0.2",
|
|
|
|
+ "IPPrefixLen": 16,
|
|
|
|
+ "IPv6Gateway": "",
|
|
|
|
+ "GlobalIPv6Address": "",
|
|
|
|
+ "GlobalIPv6PrefixLen": 0,
|
|
|
|
+ "MacAddress": "02:42:ac:12:00:02"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "Mounts": []
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
"Volumes": [
|
|
"Volumes": [
|
|
{
|
|
{
|
|
"Name": "my-volume",
|
|
"Name": "my-volume",
|
|
@@ -2584,7 +2584,7 @@ Return docker data usage information
|
|
"RefCount": 0
|
|
"RefCount": 0
|
|
}
|
|
}
|
|
]
|
|
]
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
**Status codes**:
|
|
**Status codes**:
|
|
|
|
|
|
@@ -3412,12 +3412,12 @@ Delete unused volumes
|
|
HTTP/1.1 200 OK
|
|
HTTP/1.1 200 OK
|
|
Content-Type: application/json
|
|
Content-Type: application/json
|
|
|
|
|
|
- {
|
|
|
|
- "VolumesDeleted": [
|
|
|
|
- "my-volume"
|
|
|
|
- ],
|
|
|
|
- "SpaceReclaimed": 42
|
|
|
|
- }
|
|
|
|
|
|
+ {
|
|
|
|
+ "VolumesDeleted": [
|
|
|
|
+ "my-volume"
|
|
|
|
+ ],
|
|
|
|
+ "SpaceReclaimed": 42
|
|
|
|
+ }
|
|
|
|
|
|
**Status codes**:
|
|
**Status codes**:
|
|
|
|
|