'Tag a local Docker image with a new name and tag.'

def tag(self, image, repo, tag):

    check_blacklist(repo)
    logger.info(u'Tagging    Docker    image    {}    as    {}:{}'.format(image, repo, tag))
    if (not self.client.tag(image, repo, tag=tag, force=True)):
        raise docker.errors.DockerException(u'tagging    failed')
