From 8a39e0a615319e3a5c9db576a0746cbc3f42ac8e Mon Sep 17 00:00:00 2001 From: Tom Berger Date: Sat, 16 Nov 2013 23:15:03 +0200 Subject: [PATCH] Update cloud/docker: if the image name containes a repository, strip it. When using repositories other than the main one at docker.io, the image name contains the repo name (which itself contains ":" as a separator between domain and port). We don't really care about it here, so just get rid of it before looking at the image name. --- library/cloud/docker | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/cloud/docker b/library/cloud/docker index b9afb093d37..286e6f1afe6 100644 --- a/library/cloud/docker +++ b/library/cloud/docker @@ -263,6 +263,8 @@ class DockerManager: def get_split_image_tag(self, image): + if '/' in image: + image = image.split('/')[1] tag = None if image.find(':') > 0: return image.split(':')