Package com.bmuschko.gradle.docker
Class DockerRegistryCredentials
java.lang.Object
com.bmuschko.gradle.docker.DockerRegistryCredentials
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' } }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The registry URL used as default value for the propertyurl
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTranslates the Docker registry credentials into aPasswordCredentials
.getEmail()
Registry email address needed to push images.Registry password needed to push images.getUrl()
Registry URL needed to push images.Registry username needed to push images.
-
Field Details
-
DEFAULT_URL
The registry URL used as default value for the propertyurl
.- See Also:
-
-
Constructor Details
-
DockerRegistryCredentials
-
-
Method Details
-
getUrl
Registry URL needed to push images.Defaults to "https://index.docker.io/v1/".
-
getUsername
Registry username needed to push images.Defaults to null.
-
getPassword
Registry password needed to push images.Defaults to null.
-
getEmail
Registry email address needed to push images.Defaults to null.
-
asPasswordCredentials
Translates the Docker registry credentials into aPasswordCredentials
.- Since:
- 4.0.0
-