Skip to content
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,13 @@ public PullImageCmd pullImageCmd(String repository) {

@Override
public PushImageCmd pushImageCmd(String name) {
return new PushImageCmdImpl(getDockerCmdExecFactory()
.createPushImageCmdExec(), name).withAuthConfig(dockerClientConfig.effectiveAuthConfig(name));
PushImageCmd cmd = new PushImageCmdImpl(getDockerCmdExecFactory()
.createPushImageCmdExec(), name);

AuthConfig cfg = dockerClientConfig.effectiveAuthConfig(name);
if( cfg != null )
cmd.withAuthConfig(cfg);
return cmd;
}

@Override
Expand Down