You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/api/docker_remote_api_v1.24.md
+20-10Lines changed: 20 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,19 @@ weight=-5
22
22
- When the client API version is newer than the daemon's, these calls return an HTTP
23
23
`400 Bad Request` error message.
24
24
25
-
# 2. Endpoints
25
+
# 2. Errors
26
26
27
-
## 2.1 Containers
27
+
The Remote API uses standard HTTP status codes to indicate the success or failure of the API call. The body of the response will be JSON in the following format:
28
+
29
+
{
30
+
"message": "page not found"
31
+
}
32
+
33
+
The status codes that are returned for each endpoint are specified in the endpoint documentation below.
34
+
35
+
# 3. Endpoints
36
+
37
+
## 3.1 Containers
28
38
29
39
### List containers
30
40
@@ -1504,7 +1514,7 @@ Status Codes:
1504
1514
- no such file or directory (**path** resource does not exist)
1505
1515
-**500** – server error
1506
1516
1507
-
## 2.2 Images
1517
+
## 3.2 Images
1508
1518
1509
1519
### List Images
1510
1520
@@ -2112,7 +2122,7 @@ Status Codes:
2112
2122
- **200** – no error
2113
2123
- **500** – server error
2114
2124
2115
-
## 2.3 Misc
2125
+
## 3.3 Misc
2116
2126
2117
2127
### Check auth configuration
2118
2128
@@ -2834,7 +2844,7 @@ Status Codes:
2834
2844
- **404** – no such exec instance
2835
2845
- **500** - server error
2836
2846
2837
-
## 2.4 Volumes
2847
+
## 3.4 Volumes
2838
2848
2839
2849
### List volumes
2840
2850
@@ -2972,7 +2982,7 @@ Status Codes
2972
2982
- **409** - volume is in use and cannot be removed
2973
2983
- **500** - server error
2974
2984
2975
-
## 2.5 Networks
2985
+
## 3.5 Networks
2976
2986
2977
2987
### List networks
2978
2988
@@ -3296,9 +3306,9 @@ Status Codes
3296
3306
- **404** - no such network
3297
3307
- **500** - server error
3298
3308
3299
-
# 3. Going further
3309
+
# 4. Going further
3300
3310
3301
-
## 3.1 Inside `docker run`
3311
+
## 4.1 Inside `docker run`
3302
3312
3303
3313
As an example, the `docker run` command line makes the following API calls:
3304
3314
@@ -3316,7 +3326,7 @@ As an example, the `docker run` command line makes the following API calls:
3316
3326
3317
3327
- If in detached mode or only `stdin` is attached, display the container's id.
3318
3328
3319
-
## 3.2 Hijacking
3329
+
## 4.2 Hijacking
3320
3330
3321
3331
In this version of the API, `/attach`, uses hijacking to transport `stdin`,
3322
3332
`stdout`, and `stderr` on the same socket.
@@ -3331,7 +3341,7 @@ When Docker daemon detects the `Upgrade` header, it switches its status code
3331
3341
from **200 OK** to **101 UPGRADED** and resends the same headers.
3332
3342
3333
3343
3334
-
## 3.3 CORS Requests
3344
+
## 4.3 CORS Requests
3335
3345
3336
3346
To set cross origin requests to the remote api please give values to
3337
3347
`--api-cors-header` when running Docker in daemon mode. Set * (asterisk) allows all,
0 commit comments