public class QueryService extends Object
| Constructor and Description |
|---|
QueryService(DockerAccess docker)
Constructor which gets its dependencies as args)
|
| Modifier and Type | Method and Description |
|---|---|
String |
getImageId(String imageName)
Finds the id of an image.
|
boolean |
hasImage(String name)
Check whether the given Image is locally available.
|
public QueryService(DockerAccess docker)
docker - remote access to docker daemonpublic String getImageId(String imageName) throws DockerAccessException
imageName - name of the image.DockerAccessException - if the request failspublic boolean hasImage(String name) throws DockerAccessException
name - name of image to check, the image can contain a tag, otherwise 'latest' will be appendedDockerAccessException - if the request failsCopyright © 2024. All rights reserved.