Abstract container registry interface for Docker image management.
Part of Nodevisor — TypeScript Infrastructure Automation Platform
npm install @nodevisor/registryimport Registry from '@nodevisor/registry';
// Static helpers — work without a registry instance
const tag = Registry.getTag('myapp:v1.0'); // "v1.0"
const image = Registry.getImage('myapp:v1.0'); // "myapp"
const full = Registry.getImageWithTag('myapp'); // "myapp:latest"
const hasTag = Registry.hasTag('myapp:v1.0'); // true| Method | Description |
|---|---|
Registry.getTag(image, defaultTag?) |
Extract the tag from an image name |
Registry.getImage(image) |
Extract the image name without the tag |
Registry.getImageWithTag(image, defaultTag?) |
Get the full image name with tag |
Registry.hasTag(image) |
Check if an image string includes a tag |
| Method | Description |
|---|---|
push(image, options?) |
Push an image to the registry |
login($con) |
Authenticate to the registry on a connection |
getLoginCredentials() |
Get authentication credentials |
| Class | Package | Use case |
|---|---|---|
DockerRegistry |
@nodevisor/docker |
Docker Hub, GitHub Container Registry, etc. |
DockerRegistryLocal |
@nodevisor/docker |
Local development (no remote push) |
ECR |
@nodevisor/aws |
AWS Elastic Container Registry |
@nodevisor/docker— DockerRegistry and DockerRegistryLocal@nodevisor/aws— ECR implementation@nodevisor/builder— Builders push to registries
Full documentation available at nodevisor.com/docs/packages/registry
Nodevisor uses a single O'Saasy license across all packages and applications. See the full terms in LICENSE.
