Created by matank on 4/27/15.
| Type | Name and description |
|---|---|
java.lang.String |
IMAGES_URL_PREFIX |
java.util.Map<java.lang.String, DockerContainer> |
containers |
DockerClient |
dockerClient |
java.lang.String |
image |
java.lang.String |
imageId |
DockerRegistry |
registry |
java.lang.String |
repo |
java.lang.Object |
response |
java.lang.String |
tag |
| Constructor and description |
|---|
DockerImage
(DockerClient dockerClient) |
DockerImage
(DockerClient dockerClient, java.lang.String image, java.lang.String tag, java.lang.String repo, DockerRegistry registry) |
| Type | Name and description |
|---|---|
DockerImage |
doCreate(boolean pullAll = false)Creates the image on the docker server, by pulling it if not exists. |
java.util.List |
doDelete(boolean isForce = false, boolean isNoPrune = false)Deletes the image from docker server, doesn't delete it from the registry.org.jfrog.qa.docker* @param isForce - deletes even if there is dependency at it. |
java.util.Map |
doPush()Pushes the image to the required registry |
java.util.List |
doSearch()Searches for the image in the specified registry, ignores the tag. |
java.lang.Object |
doTag(DockerImage targetImage, boolean isForce = false)Tags this image as new image (targetImage). |
boolean |
equals(java.lang.Object o) |
DockerImage |
fromRegistry(DockerRegistry dockerRegistry)Please use registry("registry") instead |
DockerImage |
fromRegistry(java.lang.String registry, java.lang.String username = null, java.lang.String password = null, java.lang.String email = null, java.lang.String auth = null) |
DockerImage |
fromRepo(java.lang.String repo)Please use namespace("namespace") instead |
java.lang.String |
getFullImageName(boolean addTag = true) |
java.lang.String |
getImageId() |
java.lang.String |
getNamespace() |
DockerContainer |
getNewContainer(java.lang.String containerName = null)Creates new container from this image. |
java.lang.String |
getRepository() |
java.lang.String |
getTag() |
java.lang.Object |
history() |
java.lang.Object |
inspect()Inspect the image, queries the docker server at real time.org.jfrog.qa.docker* @return Json |
boolean |
isExists()Check if container is exists in docker server. |
DockerImage |
namespace(java.lang.String namespace) |
DockerImage |
registry(DockerRegistry registry)Set the required registry to pull from or to push to. |
DockerImage |
registry(java.lang.String registry)Set the required registry to pull from or to push to. |
DockerImage |
repository(java.lang.String repository) |
DockerImage |
tag(java.lang.String tag) |
java.lang.String |
toString() |
DockerImage |
withTag(java.lang.String tag)Please use tag("tag") instead |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates the image on the docker server, by pulling it if not exists.
The response can be collected using "dockerImage.response".
Deletes the image from docker server, doesn't delete it from the registry.org.jfrog.qa.docker*
isForce - - deletes even if there is dependency at it.isNoPrune - - prevent the deletion of parent imagesPushes the image to the required registry
Searches for the image in the specified registry, ignores the tag.
Tags this image as new image (targetImage).
targetImage - - DockerImage object.isForce - - override exists image.Please use registry("registry") instead
Please use namespace("namespace") instead
Creates new container from this image.
containerName - - set the name for the new containerInspect the image, queries the docker server at real time.org.jfrog.qa.docker*
Check if container is exists in docker server.
Set the required registry to pull from or to push to.
Set the required registry to pull from or to push to.
Please use tag("tag") instead
Groovy Documentation