Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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
  • Loading branch information
hmrm committed Aug 6, 2014
commit d5a0f74780289dba152c3752c464196c633b03ff
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> params = new MultivaluedMapImpl();
params.add("tag", tag);
params.add("fromImage", repository);
Expand Down