Image represents abstract API for image managers. It is now implemented by conu.DockerImage
A class which represents an arbitrary container image. It contains utility methods to manipulate it.
Parameters: |
|
---|
create a container using this image
Parameters: | container_params – instance of ContainerParameters |
---|---|
Returns: | instance of Container |
check if directory specified via ‘directory_path’ is present inside the image; this method raises ConuException if the path exists but is not a directory
Parameters: | directory_path – str, directory to check |
---|---|
Returns: | True if directory exists, False if directory does not exist |
check if file specified via ‘file_path’ is present in the image
Parameters: | file_path – str, path to the file |
---|---|
Returns: | True if file exists, False if the file is missing |
provide full, complete image name
Returns: | str |
---|
get unique identifier of this image
Returns: | str |
---|
return cached metadata by default
Parameters: | refresh – bool, update the metadata with up to date content |
---|---|
Returns: | dict |
return a permissions for ‘file_path’
Parameters: | file_path – str, path to the file |
---|---|
Returns: | str |
load Image from provided file
Parameters: | file_path – str, path to the file |
---|---|
Returns: | Image instance |
mount image filesystem
Parameters: | mount_point – str, directory where the filesystem will be mounted |
---|---|
Returns: | instance of Filesystem |
mount an image to host system :param mount_point: str, mount_point on host system :return: mount_point
pull this image
Returns: | None |
---|
remove selected image
Parameters: |
|
---|---|
Returns: | None |
create a container using this image and run it in the background
Parameters: | container_params – instance of ContainerParameters |
---|---|
Returns: | instance of Container |
create a container using this image and run it in the background; this method is useful to test real user scenarios when users invoke containers using binary and not an API
Parameters: | image – instance of Image |
---|---|
Returns: | instance of Container |
Image represents abstract API for s2i images. It is now implemented by conu.S2IDockerImage
Additional functionality related to s2i-enabled container images
extend this s2i-enabled image using provided source, raises ConuException if s2i build fails
Parameters: |
|
---|---|
Returns: | S2Image instance |
Provide output of s2i usage
Returns: | str |
---|