Skip to content

Commit 4fd7b8a

Browse files
committed
implement new docker config file format for authentication
add auth option to create image command
1 parent 8902e32 commit 4fd7b8a

File tree

18 files changed

+338
-306
lines changed

18 files changed

+338
-306
lines changed

src/main/java/com/github/dockerjava/api/command/CreateContainerCmd.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.github.dockerjava.api.exception.ConflictException;
44
import com.github.dockerjava.api.exception.NotFoundException;
5+
import com.github.dockerjava.api.model.AuthConfig;
56
import com.github.dockerjava.api.model.Bind;
67
import com.github.dockerjava.api.model.Capability;
78
import com.github.dockerjava.api.model.Device;
@@ -23,6 +24,8 @@
2324

2425
public interface CreateContainerCmd extends SyncDockerCmd<CreateContainerResponse> {
2526

27+
AuthConfig getAuthConfig();
28+
2629
@CheckForNull
2730
List<String> getAliases();
2831

@@ -197,6 +200,8 @@ public interface CreateContainerCmd extends SyncDockerCmd<CreateContainerRespons
197200
@CheckForNull
198201
Boolean isTty();
199202

203+
CreateContainerCmd withAuthConfig(AuthConfig authConfig);
204+
200205
/**
201206
* Add network-scoped alias for the container
202207
* @param aliases on ore more aliases

src/main/java/com/github/dockerjava/core/AuthConfigFile.java

Lines changed: 0 additions & 210 deletions
This file was deleted.

0 commit comments

Comments
 (0)