anchorectl registry
Registry credential operations.
Every command on this page also accepts the global flags.
Subcommands
- registry add — Adds a new registry to the system
- registry delete — Delete a registry configuration record from the system. Does not remove any images.
- registry get — Get information on a specific registry
- registry list — List all configured registries the system can/will watch
- registry update — Replaces an existing registry record with the given record
registry add
Adds a new registry to the system.
anchorectl registry add REGISTRY [flags]
Arguments
| Argument | Description |
|---|---|
REGISTRY | Hostname:port string for accessing the registry, as would be used in a docker pull operation. May include some or all of a repository and wildcards (e.g. docker.io/library/* or gcr.io/myproject/myrepository). |
Examples
# The password is read from the environment, never passed as a flag
ANCHORECTL_REGISTRY_PASSWORD=<REGISTRY_PASSWORD> anchorectl registry add registry.example.com \
--username ci-runner
# Verify the credential when the registry is added. If the registry cannot be
# reached with these credentials, the command exits 1 and no record is created
ANCHORECTL_REGISTRY_PASSWORD=<REGISTRY_PASSWORD> anchorectl registry add registry.example.com \
--username ci-runner --validate
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--username | string | ANCHORECTL_REGISTRY_USERNAME | "" | Yes | Username portion of credential to use for this registry. |
--name | string | ANCHORECTL_REGISTRY_NAME | "" | No | Human readable name associated with registry record. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
--secure-connection | bool | ANCHORECTL_REGISTRY_SECURE_CONNECTION | true | No | Use TLS/SSL verification for the registry URL. |
--type | string | ANCHORECTL_REGISTRY_TYPE | docker_v2 | No | Type of registry. |
--validate | bool | ANCHORECTL_REGISTRY_VALIDATE | true | No | Whether or not to validate registry/credential at registry add time. |
registry delete
Delete a registry configuration record from the system. Does not remove any images.
anchorectl registry delete REGISTRY [flags]
Aliases: del
Arguments
| Argument | Description |
|---|---|
REGISTRY | The registry name. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
registry get
Get information on a specific registry.
anchorectl registry get REGISTRY [flags]
Arguments
| Argument | Description |
|---|---|
REGISTRY | Registry name. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
registry list
List all configured registries the system can/will watch.
anchorectl registry list [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
registry update
Replaces an existing registry record with the given record.
anchorectl registry update REGISTRY [flags]
Arguments
| Argument | Description |
|---|---|
REGISTRY | The registry name. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--name | string | ANCHORECTL_REGISTRY_NAME | "" | No | Human readable name associated with registry record. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
--secure-connection | bool | ANCHORECTL_REGISTRY_SECURE_CONNECTION | false | No | Use TLS/SSL verification for the registry URL. |
--type | string | ANCHORECTL_REGISTRY_TYPE | "" | No | Type of registry. |
--username | string | ANCHORECTL_REGISTRY_USERNAME | "" | No | Username portion of credential to use for this registry. |
--validate | bool | ANCHORECTL_REGISTRY_VALIDATE | true | No | Whether or not to validate registry/credential at registry update time. |