Linux command
crane-registry 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start a local registry
crane registry serve
Serve on a specific address and port
crane registry serve --address [localhost:5000]
Serve with on-disk blob storage
crane registry serve --disk [path/to/storage]
说明
crane registry starts a local container registry for testing and development without needing a full registry deployment. By default, data is stored in memory. Use --disk to persist blobs to a directory.
参数
- --address _addr_
- Address to listen on (default: port chosen automatically from $PORT or :0).
- --disk _dir_
- Store blobs on disk in the specified directory instead of in memory.
- -h, --help
- Show help for the command.
FAQ
What is the crane-registry command used for?
crane registry starts a local container registry for testing and development without needing a full registry deployment. By default, data is stored in memory. Use --disk to persist blobs to a directory.
How do I run a basic crane-registry example?
Run `crane registry serve` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --address _addr_ do in crane-registry?
Address to listen on (default: port chosen automatically from $PORT or :0).