curl -i http://localhost:5000/v2/Expected:
HTTP/1.1 200 OK
Docker-Distribution-API-Version: registry/2.0curl -i \
-X POST \
http://localhost:5000/v2/test/blobs/uploads/Expected:
HTTP/1.1 202 Accepted
Location: /v2/test/blobs/uploads/<uuid>
Docker-Upload-UUID: <uuid>
Range: 0-0
Docker-Distribution-API-Version: registry/2.0UUID=$(curl -is \
-X POST \
http://localhost:5000/v2/test/blobs/uploads/ \
| awk '/Docker-Upload-UUID:/ {print $2}' | tr -d '\r')
echo "$UUID"If you're using the default local storage:
find ./registry/uploadsOr if you're using Databricks Volumes:
find /Volumes/main/images/registry/uploadsYou should see something like:
uploads/
└── 0a2d1ef2-bba5-4728-b52b-5c82b9a71f96
└── data
Create ten upload sessions:
for i in {1..10}; do
curl -s \
-X POST \
http://localhost:5000/v2/test/blobs/uploads/ \
> /dev/null
doneThen count them:
find ./registry/uploads -maxdepth 1 -type d | wc -l(or replace ./registry with your configured root.)
Useful while developing:
curl -v \
-X POST \
http://localhost:5000/v2/test/blobs/uploads/This prints the full request and response headers.
/Volumes/workspace/default/docker_images/
├── uploads/
│ └── <uuid>/
│ └── session.json
├── blobs/
│ └── sha256/
│ ├── ab/
│ └── cd/
├── repositories/
│ └── test/
│ ├── manifests/
│ └── tags/
└── _registry/
├── config.json
└── version