Installed images
This is the set of installed images that bellongs to a given user.
-
class
subuserlib.classes.installedImages.InstalledImages(user)[source]
-
reloadInstalledImagesList()[source]
Reload the installed images list from disk, discarding the current in-memory version.
-
save()[source]
Save attributes of the installed images to disk.
-
serializeToDict()[source]
-
unregisterNonExistantImages()[source]
Go through the installed images list and unregister any images that aren’t actually installed.
Each user has a set of images that have been installed.
-
class
subuserlib.classes.installedImage.InstalledImage(user, imageId, imageSourceName, sourceRepoId, imageSourceHash)[source]
-
checkForUpdates()[source]
Check for updates using the image’s built in check-for-updates script. This launches the script as root in a privilageless container. Returns True if the image needs to be updated.
-
describe()[source]
-
getCreationDateTime()[source]
Return the creation date/time of the installed docker image. Or None if the image does not exist.
-
getImageId()[source]
-
getImageLineage()[source]
Return the list(lineage) of InstalledImages which goes from a base image to this image including all of the image’s ancestors in order of dependency.
-
getImageSource()[source]
-
getImageSourceHash()[source]
-
getImageSourceName()[source]
-
getLineageLayers()[source]
Return the list(lineage) of id of Docker image layers which goes from a base image to this image including all of the image’s ancestors in order of dependency.
-
getSourceRepoId()[source]
-
isDockerImageThere()[source]
Does the Docker daemon have an image with this imageId?
-
removeCachedRuntimes()[source]
Remove cached runtime environments.
-
removeDockerImage()[source]
Remove the image from the Docker daemon’s image store.