Class DockerApi
java.lang.Object
org.springframework.boot.buildpack.platform.docker.DockerApi
Provides access to the limited set of Docker APIs needed by pack.
- Since:
- 2.3.0
- Author:
- Phillip Webb, Scott Frederick, Rafael Ceccone, Moritz Halbritter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Docker API for container operations.class
Docker API for image operations.class
Docker API for volume operations. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a newDockerApi
instance.DockerApi
(DockerConfiguration.DockerHostConfiguration dockerHost) Deprecated, for removal: This API element is subject to removal in a future version.DockerApi
(DockerConnectionConfiguration connectionConfiguration, DockerLog log) Create a newDockerApi
instance. -
Method Summary
-
Constructor Details
-
DockerApi
public DockerApi()Create a newDockerApi
instance. -
DockerApi
@Deprecated(since="3.5.0", forRemoval=true) public DockerApi(DockerConfiguration.DockerHostConfiguration dockerHost) Deprecated, for removal: This API element is subject to removal in a future version.since 3.5.0 for removal in 4.0.0 in favor ofDockerApi(DockerConnectionConfiguration, DockerLog)
Create a newDockerApi
instance.- Parameters:
dockerHost
- the Docker daemon host information- Since:
- 2.4.0
-
DockerApi
Create a newDockerApi
instance.- Parameters:
connectionConfiguration
- the connection configuration to uselog
- a logger used to record output- Since:
- 3.5.0
-
-
Method Details
-
image
Return the Docker API for image operations.- Returns:
- the image API
-
container
Return the Docker API for container operations.- Returns:
- the container API
-
volume
-
DockerApi(DockerConnectionConfiguration, DockerLog)