Bring your own registry
-
Import/Create registry
- Using argument
- Using file
initz import registry --name <name> --username <username> --password <password> --url <url> --provider <provider> --namespace <namespace>
Flags
--name
- Indicates name of the registry.
- required
- Shorthand :
n
--username
- Indicates the username, with which you are registered with your registry provider.
- required
--password
- Indicates the password of you registry account.
- required
--url
- Indicates the URL of your service provider.
- required
--provider
- required
--namespace
- required
initz import registry -f <registry.json/registry.yaml>
Example template :
- JSON
- YAML
registry.json{
"name": "example",
"password": "example@123",
"registry_url": "https://hub.docker.com",
"type": "Docker Hub",
"username": "[email protected]",
"root": "example_namespace"
}registry.yamlname: example
password: example@123
registry_url: https://hub.docker.com
type: Docker Hub
username: [email protected]
root: example_namespaceYou can either use the configuration provided in the file above to import the registry or generate your own example configuration to do so.
Generate configuration :
- JSON
- YAML
registry.jsoninitz import registry --name <registry-name> --username <username> --password <password> --url <registry url> --provider <provider> --namespace <namespace> -t json
registry.yamlinitz import registry --name <registry-name> --username <username> --password <password> --url <registry url> --provider <provider> --namespace <namespace> -t yaml
-
Update registry
Use command :
initz edit registry --name <registry--name> --username <username> --password <password> --namespace <namespace>
Flags
--name
- Indicates name of the registry.
- required
- Shorthand :
n
--username
- Indicates the username, with which you are registered with your registry provider.
- required
--password
- Indicates the password of you registry account.
- required
--namespace
- required
importantIn the registry, you can edit the username, password, and namespace.
-
Delete Registry
Use command :
initz delete registry --name <registry-name>
-
Get the list of registry
Use command :
initz get registry
In order to get information about specific registry.
Use command :initz get registry <registry-name>
-
Check registry name
To check registry name is available or not, use command :
initz check registry --name <registry-name>