From d5a0f74780289dba152c3752c464196c633b03ff Mon Sep 17 00:00:00 2001 From: Haney Maxwell Date: Tue, 5 Aug 2014 18:53:39 -0700 Subject: [PATCH] Remove special-case for one ":" from PullCommand This special treatment breaks images with registries with a port specified, e.g. my-docker-registry:5000/my-namespace/my-image --- .../com/github/dockerjava/client/command/PullImageCmd.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/com/github/dockerjava/client/command/PullImageCmd.java b/src/main/java/com/github/dockerjava/client/command/PullImageCmd.java index 83832c474..c6fa460e0 100644 --- a/src/main/java/com/github/dockerjava/client/command/PullImageCmd.java +++ b/src/main/java/com/github/dockerjava/client/command/PullImageCmd.java @@ -71,13 +71,6 @@ public String toString() { protected ClientResponse impl() { Preconditions.checkNotNull(repository, "Repository was not specified"); - if (StringUtils.countMatches(repository, ":") == 1) { - String repositoryTag[] = StringUtils.split(repository, ':'); - repository = repositoryTag[0]; - tag = repositoryTag[1]; - - } - MultivaluedMap params = new MultivaluedMapImpl(); params.add("tag", tag); params.add("fromImage", repository);