def filename_to_image_name_tag(filename):
    """ Get image name and tag using image filename"""
    filename = filename.replace(".docker", "")
    name_tag_list = filename.rsplit("-", 1)
    name = name_tag_list[0].replace("-", "/", 1)
    tag = name_tag_list[1]
    name_and_tag = name + ":" + tag
    return name_and_tag