Class Docker
java.lang.Object
org.springframework.boot.maven.Docker
Docker configuration options.
- Since:
- 2.4.0
- Author:
- Wei Jiang, Scott Frederick
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEncapsulates Docker registry authentication configuration options. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringThe path to TLS certificate and key files required for TLS communication with the Docker daemon.@Nullable StringThe Docker context to use to retrieve host configuration.@Nullable StringgetHost()The host address of the Docker daemon.booleanWhether to use the configured Docker host in the builder container.booleanWhether the Docker daemon requires TLS communication.voidsetContext(@Nullable String context)
-
Constructor Details
-
Docker
public Docker()
-
-
Method Details
-
getHost
-
getContext
The Docker context to use to retrieve host configuration.- Returns:
- the Docker context
-
setContext
-
isTlsVerify
public boolean isTlsVerify()Whether the Docker daemon requires TLS communication.- Returns:
trueto enable TLS
-
getCertPath
The path to TLS certificate and key files required for TLS communication with the Docker daemon.- Returns:
- the TLS certificate path
-
isBindHostToBuilder
public boolean isBindHostToBuilder()Whether to use the configured Docker host in the builder container.- Returns:
trueto use the configured Docker host in the builder container
-