If src is a string or unicode string, it will first be treated as a
path to a tarball on the local system. If there is an error reading
from that file, src will be treated as a URL instead to fetch the
image from. You can also pass an open file handle as src, in which
case the data will be read from that file.

If src is unset but image is set, the image parameter will
be taken as the name of an existing image to import from.

Args:

src (str or file): Path to tarfile, URL, or file-like object
repository (str): The repository to create
tag (str): The tag to apply
image (str): Use another image like the FROM Dockerfile