def load(imagepath):

    status = base_status.copy()
    if os.path.isfile(imagepath):
        try:
            dockercmd = ['docker', 'load', '-i', imagepath]
            ret = __salt__['cmd.run'](dockercmd, python_shell=False)
            if isinstance(ret, dict) and ('retcode' in ret) and (ret['retcode'] != 0):
                return _invalid(status, id_=None,
                                out=ret,
                                comment='Command to load image {0} failed.'.format(imagepath))

            _valid(status, id_=None, out=ret, comment='Image load success')
        except Exception:
            _invalid(status, id_=None,
                     comment="Image not loaded.",
                     out=traceback.format_exc())
    else:
        _invalid(status, id_=None,
                 comment='Image file {0} could not be found.'.format(imagepath),
                 out=traceback.format_exc())

    return status
Load the specified file at imagepath into docker that was generated from
dataset/ETHPy150Open saltstack/salt/salt/modules/dockerio.py/load