Class ContainerSpec.Builder
java.lang.Object
com.spotify.docker.client.messages.swarm.ContainerSpec.Builder
- Direct Known Subclasses:
AutoValue_ContainerSpec.Builder
- Enclosing class:
ContainerSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec
build()
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
configs
(List<ConfigBind> configs) abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
healthcheck
(ContainerConfig.Healthcheck healthcheck) abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
secrets
(List<SecretBind> secrets) abstract ContainerSpec.Builder
stopGracePeriod
(Long stopGracePeriod) abstract ContainerSpec.Builder
abstract ContainerSpec.Builder
Deprecated.Deprecated.As of release 7.0.0, replaced byargs(List)
.withCommands
(String... commands) Deprecated.As of release 7.0.0, replaced bycommand(String...)
.withCommands
(List<String> commands) Deprecated.As of release 7.0.0, replaced bycommand(List)
.Deprecated.As of release 7.0.0, replaced bydir(String)
.Deprecated.As of release 7.0.0, replaced byenv(String...)
.Deprecated.As of release 7.0.0, replaced byenv(List)
.withGroups
(String... groups) Deprecated.As of release 7.0.0, replaced bygroups(String...)
.withGroups
(List<String> groups) Deprecated.As of release 7.0.0, replaced bygroups(List)
.Deprecated.As of release 7.0.0, replaced byimage(String)
.withMounts
(Mount... mounts) Deprecated.As of release 7.0.0, replaced bymounts(Mount...)
.withMounts
(List<Mount> mounts) Deprecated.As of release 7.0.0, replaced bymounts(List)
.withStopGracePeriod
(long stopGracePeriod) Deprecated.As of release 7.0.0, replaced bystopGracePeriod(Long)
.withTty()
Deprecated.As of release 7.0.0, replaced bytty(Boolean)
withTty
(boolean tty) Deprecated.As of release 7.0.0, replaced bytty(Boolean)
.Deprecated.As of release 7.0.0, replaced byuser(String)
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
-
withImage
Deprecated.As of release 7.0.0, replaced byimage(String)
. -
hostname
-
labels
-
command
-
command
-
withCommands
Deprecated.As of release 7.0.0, replaced bycommand(String...)
. -
withCommands
Deprecated.As of release 7.0.0, replaced bycommand(List)
. -
args
-
args
-
withArgs
Deprecated.As of release 7.0.0, replaced byargs(String...)
. -
withArgs
Deprecated.As of release 7.0.0, replaced byargs(List)
. -
env
-
env
-
withEnv
Deprecated.As of release 7.0.0, replaced byenv(String...)
. -
withEnv
Deprecated.As of release 7.0.0, replaced byenv(List)
. -
dir
-
withDir
Deprecated.As of release 7.0.0, replaced bydir(String)
. -
user
-
withUser
Deprecated.As of release 7.0.0, replaced byuser(String)
. -
groups
-
groups
-
withGroups
Deprecated.As of release 7.0.0, replaced bygroups(String...)
. -
withGroups
Deprecated.As of release 7.0.0, replaced bygroups(List)
. -
tty
-
withTty
Deprecated.As of release 7.0.0, replaced bytty(Boolean)
-
withTty
Deprecated.As of release 7.0.0, replaced bytty(Boolean)
. -
mounts
-
mounts
-
withMounts
Deprecated.As of release 7.0.0, replaced bymounts(Mount...)
. -
withMounts
Deprecated.As of release 7.0.0, replaced bymounts(List)
. -
stopGracePeriod
-
withStopGracePeriod
Deprecated.As of release 7.0.0, replaced bystopGracePeriod(Long)
. -
dnsConfig
-
healthcheck
-
hosts
-
secrets
-
configs
-
build
-
args(String...)
.