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

Method import_image_from_url

docker/api/image.py:203–216  ·  view source on GitHub ↗

Like :py:meth:`~docker.api.image.ImageApiMixin.import_image`, but only supports importing from a URL. Args: url (str): A URL pointing to a tar file. repository (str): The repository to create tag (str): The tag to apply

(self, url, repository=None, tag=None,
                              changes=None)

Source from the content-addressed store, hash-verified

201 )
202
203 def import_image_from_url(self, url, repository=None, tag=None,
204 changes=None):
205 """
206 Like :py:meth:`~docker.api.image.ImageApiMixin.import_image`, but only
207 supports importing from a URL.
208
209 Args:
210 url (str): A URL pointing to a tar file.
211 repository (str): The repository to create
212 tag (str): The tag to apply
213 """
214 return self.import_image(
215 src=url, repository=repository, tag=tag, changes=changes
216 )
217
218 def import_image_from_image(self, image, repository=None, tag=None,
219 changes=None):

Callers

nothing calls this directly

Calls 1

import_imageMethod · 0.95

Tested by

no test coverage detected