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: spec.md
+29-28Lines changed: 29 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,34 +197,8 @@ There are two ways to push blobs: chunked or monolithic.
197
197
##### Pushing a blob monolithically
198
198
199
199
There are two ways to push a blob monolithically:
200
-
1. A single `POST` request
201
-
2. A `POST` request followed by a `PUT` request
202
-
203
-
---
204
-
205
-
To push a blob monolithically by using a single POST request, perform a `POST` request to a URL in the following form, and with the following headers and body:
Here, `<name>` is the repository's namespace, `<digest>` is the blob's digest, and `<length>` is the size (in bytes) of the blob.
217
-
218
-
The `Content-Length` header MUST match the blob's actual content length. Likewise, the `<digest>` MUST match the blob's digest.
219
-
220
-
Successful completion of the request MUST return either a `201 Created` or a `202 Accepted`, and MUST include the following header:
221
-
222
-
```
223
-
Location: <blob-location>
224
-
```
225
-
226
-
Here, `<blob-location>` is a pullable blob URL. This location does not necessarily have to be served by your register, for example, in the case of a signed URL from
227
-
some cloud storage provider that your registry generates.
200
+
1. A `POST` request followed by a `PUT` request
201
+
2. A single `POST` request
228
202
229
203
---
230
204
@@ -270,6 +244,33 @@ Location: <blob-location>
270
244
271
245
With `<blob-location>` being a pullable blob URL.
272
246
247
+
---
248
+
249
+
To push a blob monolithically by using a single POST request, perform a `POST` request to a URL in the following form, and with the following headers and body:
Here, `<name>` is the repository's namespace, `<digest>` is the blob's digest, and `<length>` is the size (in bytes) of the blob.
261
+
262
+
The `Content-Length` header MUST match the blob's actual content length. Likewise, the `<digest>` MUST match the blob's digest.
263
+
264
+
Successful completion of the request MUST return either a `201 Created` or a `202 Accepted`, and MUST include the following header:
265
+
266
+
```
267
+
Location: <blob-location>
268
+
```
269
+
270
+
Here, `<blob-location>` is a pullable blob URL. This location does not necessarily have to be served by your register, for example, in the case of a signed URL from
271
+
some cloud storage provider that your registry generates.
272
+
273
+
273
274
##### Pushing a blob in chunks
274
275
275
276
A chunked blob upload is accomplished in three phases:
0 commit comments