Pull, inspect, export, and manage container images with Container Kit’s image operations
Container Kit provides comprehensive image management for macOS containers, allowing you to pull images from registries, inspect image details, export to tar archives, and manage your local image library.
The image management system integrates with Apple’s container CLI to handle container images efficiently. All operations support the native macOS architecture (ARM64/aarch64).
import { pullImage } from '$lib/services/containerization/images';// Pull the latest versionconst result = await pullImage(['redis']);// Pull specific versionconst result = await pullImage(['redis:7.2']);// Pull from specific registryconst result = await pullImage(['docker.io/library/nginx:alpine']);if (!result.error) { console.log('Image pulled successfully:', result.stdout);}
import { createPullImageCommand } from '$lib/services/containerization/images';const command = createPullImageCommand(['nginx:alpine']);// Use command for custom execution with progress callbacks
Container Kit runs on Apple Silicon Macs and supports ARM64 architecture:
const result = await exportImageToTar( 'redis', '/path/to/redis.tar', ['--arch', 'aarch64']);
Container Kit is optimized for Apple Silicon (M1/M2/M3/M4) and requires macOS 26.0+. Multi-architecture images will automatically use the ARM64 variant.