forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateContainerCmd.java
More file actions
110 lines (60 loc) · 2.62 KB
/
Copy pathCreateContainerCmd.java
File metadata and controls
110 lines (60 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.ConflictException;
import com.github.dockerjava.api.NotFoundException;
import com.github.dockerjava.api.model.ExposedPort;
import com.github.dockerjava.api.model.Volume;
public interface CreateContainerCmd extends DockerCmd<CreateContainerResponse>{
public CreateContainerCmd withName(String name);
public String getName();
public CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts);
public ExposedPort[] getExposedPorts();
public boolean isDisableNetwork();
public String getWorkingDir();
public CreateContainerCmd withWorkingDir(String workingDir);
public String getHostName();
public CreateContainerCmd withDisableNetwork(boolean disableNetwork);
public CreateContainerCmd withHostName(String hostName);
public String[] getPortSpecs();
public CreateContainerCmd withPortSpecs(String... portSpecs);
public String getUser();
public CreateContainerCmd withUser(String user);
public boolean isTty();
public CreateContainerCmd withTty(boolean tty);
public boolean isStdinOpen();
public CreateContainerCmd withStdinOpen(boolean stdinOpen);
public boolean isStdInOnce();
public CreateContainerCmd withStdInOnce(boolean stdInOnce);
public long getMemoryLimit();
public CreateContainerCmd withMemoryLimit(long memoryLimit);
public long getMemorySwap();
public CreateContainerCmd withMemorySwap(long memorySwap);
public int getCpuShares();
public CreateContainerCmd withCpuShares(int cpuShares);
public boolean isAttachStdin();
public CreateContainerCmd withAttachStdin(boolean attachStdin);
public boolean isAttachStdout();
public CreateContainerCmd withAttachStdout(boolean attachStdout);
public boolean isAttachStderr();
public CreateContainerCmd withAttachStderr(boolean attachStderr);
public String[] getEnv();
public CreateContainerCmd withEnv(String... env);
public String[] getCmd();
public CreateContainerCmd withCmd(String... cmd);
public String[] getDns();
public CreateContainerCmd withDns(String... dns);
public String getImage();
public CreateContainerCmd withImage(String image);
public Volume[] getVolumes();
public CreateContainerCmd withVolumes(Volume... volumes);
public String[] getVolumesFrom();
public CreateContainerCmd withVolumesFrom(String... volumesFrom);
/**
* @throws NotFoundException No such container
* @throws ConflictException Named container already exists
*/
@Override
public CreateContainerResponse exec() throws NotFoundException,
ConflictException;
public static interface Exec extends DockerCmdExec<CreateContainerCmd, CreateContainerResponse> {
}
}