def _image_name(image):
    """Convert long image name to short one.

    e.g 'dockerregistry-v2.my.domain.com.foobar/isilon-data-insights:latest@sha256:HASH' -> dockerreg.../isilon-data-insights:latest
    """
    try:
        # remove @sha256:....
        image = image.split("@")[0]
    except IndexError:
        pass
    try:
        # reduce username or registry fqdn
        reg, img = image.split("/")
        image = reg[:10] + (reg[10:] and '...') + "/" + img
    except ValueError:
        pass
    return image