public class MiscService extends BaseService
REGISTRY_AUTH_HEADER| Constructor and Description |
|---|
MiscService(String dockerApiRoot) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildImage(byte[] tarArchive,
Optional<String> name,
Optional<String> buildArguments)
Builds an image based on the passed tar archive.
|
String |
commitContainer(String container,
Optional<String> repo,
Optional<String> tag,
Optional<String> comment,
Optional<String> author)
Create a new image from a container's changes
|
DockerVersionInfo |
getVersionInfo()
Returns the Docker version information
|
checkImageTargetingResponse, getRegistryAuthHeaderValue, getServiceEndPoint, makeImageTargetingException, setCredentials, toJson, toObjectpublic MiscService(String dockerApiRoot)
public DockerVersionInfo getVersionInfo()
DockerVersionInfo instance describing this docker installation.public String commitContainer(String container, Optional<String> repo, Optional<String> tag, Optional<String> comment, Optional<String> author)
container - source containerrepo - repositorytag - tagcomment - commit messageauthor - author (e.g., "John Hannibal Smith <hannibal@a-team.com>")public String buildImage(byte[] tarArchive, Optional<String> name, Optional<String> buildArguments)
tarArchive - the tar archive to use as a source for the imagename - the name and optional tag of the image.buildArguments - a list of optional build arguments made available to the Dockerfile.Copyright © 2016. All Rights Reserved.