@CompileStatic class DockerRegistryCredentials extends Object
The extension for configuring the Docker communication via the remote API through the DockerRemoteApiPlugin.
The following example demonstrates the use of the extension in a build script using the Groovy DSL:
docker {
registryCredentials {
username = 'bmuschko'
password = 'pwd'
}
}
| Modifiers | Name | Description |
|---|---|---|
class |
DockerRegistryCredentials.1 |
| Modifiers | Name | Description |
|---|---|---|
static String |
DEFAULT_URL |
The registry URL used as default value for the property url. |
| Constructor and description |
|---|
DockerRegistryCredentials
(ObjectFactory objectFactory) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
PasswordCredentials |
asPasswordCredentials()Translates the Docker registry credentials into a PasswordCredentials. |
Registry email address needed to push images.
Defaults to null.
Registry password needed to push images.
Defaults to null.
Registry URL needed to push images.
Defaults to "https://index.docker.io/v1/".
Translates the Docker registry credentials into a PasswordCredentials.
Groovy Documentation