We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6c8490 + c88167b commit f2cd973Copy full SHA for f2cd973
src/main/java/com/github/dockerjava/core/DockerClientImpl.java
@@ -126,8 +126,13 @@ public PullImageCmd pullImageCmd(String repository) {
126
127
@Override
128
public PushImageCmd pushImageCmd(String name) {
129
- return new PushImageCmdImpl(getDockerCmdExecFactory()
130
- .createPushImageCmdExec(), name).withAuthConfig(dockerClientConfig.effectiveAuthConfig(name));
+ PushImageCmd cmd = new PushImageCmdImpl(getDockerCmdExecFactory()
+ .createPushImageCmdExec(), name);
131
+
132
+ AuthConfig cfg = dockerClientConfig.effectiveAuthConfig(name);
133
+ if( cfg != null )
134
+ cmd.withAuthConfig(cfg);
135
+ return cmd;
136
}
137
138
0 commit comments