Module arvados.commands.keepdocker
Functions
- def check_docker(proc, description)
- def docker_image_compatible(api, image_hash)
- def docker_image_format(image_hash)
- 
Return the registry format ('v1' or 'v2') of the given image. 
- def docker_images()
- def docker_link_sort_key(link)
- 
Build a sort key to find the latest available Docker image. To find one source collection for a Docker image referenced by name or image id, the API server looks for a link with the most recent image_timestampproperty; then the most recentcreated_attimestamp. This method generates a sort key for Docker metadata links to sort them from least to most preferred.
- def find_image_hashes(image_search, image_tag=None)
- def find_one_image_hash(image_search, image_tag=None)
- def get_cache_dir()
- def items_owned_by(owner_uuid, arv_items)
- def list_images_in_arv(api_client, num_retries, image_name=None, image_tag=None)
- 
List all Docker images known to the api_client with image_name and image_tag. If no image_name is given, defaults to listing all Docker images. Returns a list of tuples representing matching Docker images, sorted in preference order (i.e. the first collection in the list is the one that the API server would use). Each tuple is a (collection_uuid, collection_info) pair, where collection_info is a dict with fields "dockerhash", "repo", "tag", and "timestamp". 
- def main(arguments=None, stdout=sys.stdout, install_sig_handlers=True, api=None)
- def make_link(api_client, num_retries, link_class, link_name, **link_attrs)
- def popen_docker(cmd, *args, **kwargs)
- def prep_image_file(filename)
- def pull_image(image_name, image_tag)
- def save_image(image_hash, image_file)
- def stat_cache_name(image_file)
Classes
- class DockerError (*args, **kwargs)
- 
Common base class for all non-exit exceptions. Expand source codeclass DockerError(Exception): passAncestors- builtins.Exception
- builtins.BaseException
 
- class DockerImage (repo, tag, hash, created, vsize)
- 
DockerImage(repo, tag, hash, created, vsize) Ancestors- builtins.tuple
 Instance variables- var created
- 
Alias for field number 3 
- var hash
- 
Alias for field number 2 
- var repo
- 
Alias for field number 0 
- var tag
- 
Alias for field number 1 
- var vsize
- 
Alias for field number 4