MCPcopy Index your code
hub / github.com/docker/docker-py / _import_image_params

Function _import_image_params

docker/api/image.py:585–601  ·  view source on GitHub ↗
(repo, tag, image=None, src=None,
                         changes=None)

Source from the content-addressed store, hash-verified

583
584
585def _import_image_params(repo, tag, image=None, src=None,
586 changes=None):
587 params = {
588 'repo': repo,
589 'tag': tag,
590 }
591 if image:
592 params['fromImage'] = image
593 elif src and not is_file(src):
594 params['fromSrc'] = src
595 else:
596 params['fromSrc'] = '-'
597
598 if changes:
599 params['changes'] = changes
600
601 return params

Callers 2

import_imageMethod · 0.85

Calls 1

is_fileFunction · 0.85

Tested by

no test coverage detected