diff options
Diffstat (limited to 'recipes-containers/vcontainer/README.md')
| -rw-r--r-- | recipes-containers/vcontainer/README.md | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes-containers/vcontainer/README.md b/recipes-containers/vcontainer/README.md index 76d54d18..657dd02e 100644 --- a/recipes-containers/vcontainer/README.md +++ b/recipes-containers/vcontainer/README.md | |||
| @@ -268,6 +268,55 @@ vdkr pull alpine:latest | |||
| 268 | vdkr images # Shows alpine:latest | 268 | vdkr images # Shows alpine:latest |
| 269 | ``` | 269 | ``` |
| 270 | 270 | ||
| 271 | ## Registry Login and Configuration | ||
| 272 | |||
| 273 | For authenticated registries: | ||
| 274 | |||
| 275 | ```bash | ||
| 276 | # Login (interactive password prompt) | ||
| 277 | vdkr login --username myuser https://registry.example.com/ | ||
| 278 | |||
| 279 | # Pull from the registry | ||
| 280 | vdkr pull registry.example.com/myimage:latest | ||
| 281 | ``` | ||
| 282 | |||
| 283 | Set a default registry so you don't need to specify the full URL each time: | ||
| 284 | |||
| 285 | ```bash | ||
| 286 | # Set default registry (persisted across sessions) | ||
| 287 | vdkr vconfig registry registry.example.com | ||
| 288 | |||
| 289 | # Now pulls try the default registry first, then Docker Hub | ||
| 290 | vdkr pull myimage:latest | ||
| 291 | |||
| 292 | # One-off override without changing the default | ||
| 293 | vdkr --registry other.registry.com pull myimage:latest | ||
| 294 | |||
| 295 | # Clear default registry | ||
| 296 | vdkr vconfig registry --reset | ||
| 297 | ``` | ||
| 298 | |||
| 299 | **Note:** The `--registry` flag is a vdkr option that sets the default | ||
| 300 | registry for pulls. For `login`, pass the registry URL as a positional | ||
| 301 | argument after the login flags: | ||
| 302 | |||
| 303 | ```bash | ||
| 304 | # Correct: | ||
| 305 | vdkr login --username myuser https://registry.example.com/ | ||
| 306 | |||
| 307 | # Wrong (--registry is consumed by vdkr, login gets no URL): | ||
| 308 | vdkr --registry https://registry.example.com/ login --username myuser | ||
| 309 | ``` | ||
| 310 | |||
| 311 | **TLS certificates:** The vdkr/vpdmn rootfs images include common | ||
| 312 | intermediate certificates (Let's Encrypt E8/R11) to handle registries | ||
| 313 | that don't send the full certificate chain. For self-signed registries, | ||
| 314 | use `--secure-registry --ca-cert`: | ||
| 315 | |||
| 316 | ```bash | ||
| 317 | vdkr --secure-registry --ca-cert /path/to/ca.crt pull myimage | ||
| 318 | ``` | ||
| 319 | |||
| 271 | ## Volume Mounts | 320 | ## Volume Mounts |
| 272 | 321 | ||
| 273 | Mount host directories into containers using `-v` (requires memory resident mode): | 322 | Mount host directories into containers using `-v` (requires memory resident mode): |
