Docker V2 API
Technical reference for the Docker Registry V2 API implementation.
⏱️ 6 min read
Overview
NugetHosting implements the Docker Registry HTTP API V2, making it compatible with:
- Docker CLI
- Podman
- Kubernetes
- Docker Compose
- Any OCI-compatible tool
Registry URL
registry.nugethosting.comAuthentication
The registry uses Bearer token authentication. First, get a token:
GET /v2/token?service=registry&scope=repository:{name}:{actions}Pass your API token as Basic auth:
curl -u "api:YOUR_TOKEN" \
"https://registry.nugethosting.com/v2/token?service=registry&scope=repository:myimage:pull,push"💡 Note: Docker CLI handles this automatically when you run docker login.
Manifests
Get Manifest
GET /v2/{name}/manifests/{reference}Push Manifest
PUT /v2/{name}/manifests/{reference}Delete Manifest
DELETE /v2/{name}/manifests/{reference}Blobs
Get Blob
GET /v2/{name}/blobs/{digest}Initiate Blob Upload
POST /v2/{name}/blobs/uploads/Returns a Location header with the upload URL.
Catalog
List all repositories:
GET /v2/_catalogList tags for a repository:
GET /v2/{name}/tags/list