def present(name, image=None, tag='latest', is_latest=False):
    ins_container = __salt__['docker.inspect_container']
    cinfos = ins_container(name)
    if 'id' in cinfos:
        cid = cinfos['id']
    else:
        cid = name
    if not cinfos['status']:
        return _invalid(comment='Container {0} not found'.format(cid or name))
    if cinfos['status'] and image is None:
        return _valid(comment='Container {0} exists'.format(cid))
    image_name = _get_image_name(image, tag)
    if cinfos['status'] and cinfos['out']['Config']["Image"] == image_name and not is_latest:
        return _valid(comment='Container {0} exists and has image {1}'.format(cid, image_name))
    ins_image = __salt__['docker.inspect_image']
    iinfos = ins_image(image_name)
    if cinfos['status'] and cinfos['out']['Image'] == iinfos['out']['Id']:
        return _valid(comment='Container {0} exists and has latest version of image {1}'.format(cid, image_name))
    return _invalid(comment='Container {0} found with wrong image'.format(cid or name))
return rabbitmq status
dataset/ETHPy150Open saltstack/salt/salt/states/dockerio.py/present--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/rabbitmq.py/status