Package | Description |
---|---|
com.github.dockerjava.api | |
com.github.dockerjava.api.command |
Modifier and Type | Method and Description |
---|---|
CreateContainerCmd |
DockerClient.createContainerCmd(String image) |
Modifier and Type | Method and Description |
---|---|
CreateContainerCmd |
CreateContainerCmd.withAliases(List<String> aliases)
Add network-scoped alias for the container
|
CreateContainerCmd |
CreateContainerCmd.withAliases(String... aliases)
Add network-scoped alias for the container
|
CreateContainerCmd |
CreateContainerCmd.withArgsEscaped(Boolean argsEscaped) |
CreateContainerCmd |
CreateContainerCmd.withAttachStderr(Boolean attachStderr) |
CreateContainerCmd |
CreateContainerCmd.withAttachStdin(Boolean attachStdin) |
CreateContainerCmd |
CreateContainerCmd.withAttachStdout(Boolean attachStdout) |
CreateContainerCmd |
CreateContainerCmd.withAuthConfig(AuthConfig authConfig)
While using swarm classic, you can provide an optional auth config which will be used to pull images from a private registry,
if the swarm node does not already have the docker image.
|
default CreateContainerCmd |
CreateContainerCmd.withBinds(Bind... binds)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withBinds(List<Bind> binds)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withBlkioWeight(Integer blkioWeight)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withCapAdd(Capability... capAdd)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withCapAdd(List<Capability> capAdd)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withCapDrop(Capability... capDrop)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withCapDrop(List<Capability> capDrop)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withCgroupParent(String cgroupParent)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withCmd(List<String> cmd) |
CreateContainerCmd |
CreateContainerCmd.withCmd(String... cmd) |
default CreateContainerCmd |
CreateContainerCmd.withContainerIDFile(String containerIDFile)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withCpuPeriod(Integer cpuPeriod)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withCpusetCpus(String cpusetCpus)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withCpusetMems(String cpusetMems)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withCpuShares(Integer cpuShares)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withDevices(Device... devices)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withDevices(List<Device> devices)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withDns(List<String> dns)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withDns(String... dns)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withDnsSearch(List<String> dnsSearch)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withDnsSearch(String... dnsSearch)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withDomainName(String domainName) |
CreateContainerCmd |
CreateContainerCmd.withEntrypoint(List<String> entrypoint) |
CreateContainerCmd |
CreateContainerCmd.withEntrypoint(String... entrypoint) |
CreateContainerCmd |
CreateContainerCmd.withEnv(List<String> env)
Adds environment-variables.
|
CreateContainerCmd |
CreateContainerCmd.withEnv(String... env)
Adds environment-variables.
|
CreateContainerCmd |
CreateContainerCmd.withExposedPorts(ExposedPort... exposedPorts) |
CreateContainerCmd |
CreateContainerCmd.withExposedPorts(List<ExposedPort> exposedPorts) |
default CreateContainerCmd |
CreateContainerCmd.withExtraHosts(List<String> extraHosts)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withExtraHosts(String... extraHosts)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withHealthcheck(HealthCheck healthCheck) |
CreateContainerCmd |
CreateContainerCmd.withHostConfig(HostConfig hostConfig) |
CreateContainerCmd |
CreateContainerCmd.withHostName(String hostName) |
CreateContainerCmd |
CreateContainerCmd.withImage(String image) |
CreateContainerCmd |
CreateContainerCmd.withIpv4Address(String ipv4Address) |
CreateContainerCmd |
CreateContainerCmd.withIpv6Address(String ipv6Address) |
CreateContainerCmd |
CreateContainerCmd.withLabels(Map<String,String> labels) |
default CreateContainerCmd |
CreateContainerCmd.withLinks(Link... links)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withLinks(List<Link> links)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withLogConfig(LogConfig logConfig)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withLxcConf(List<LxcConf> lxcConf)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withLxcConf(LxcConf... lxcConf)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withMacAddress(String macAddress) |
default CreateContainerCmd |
CreateContainerCmd.withMemory(Long memory)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withMemorySwap(Long memorySwap)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withName(String name) |
CreateContainerCmd |
CreateContainerCmd.withNetworkDisabled(Boolean disableNetwork) |
default CreateContainerCmd |
CreateContainerCmd.withNetworkMode(String networkMode)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withOnBuild(List<String> onBuild) |
default CreateContainerCmd |
CreateContainerCmd.withOomKillDisable(Boolean oomKillDisable)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withPidMode(String pidMode)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withPlatform(String platform) |
default CreateContainerCmd |
CreateContainerCmd.withPortBindings(List<PortBinding> portBindings)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withPortBindings(PortBinding... portBindings)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withPortBindings(Ports portBindings)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withPortSpecs(List<String> portSpecs) |
CreateContainerCmd |
CreateContainerCmd.withPortSpecs(String... portSpecs) |
default CreateContainerCmd |
CreateContainerCmd.withPrivileged(Boolean privileged)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withPublishAllPorts(Boolean publishAllPorts)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withReadonlyRootfs(Boolean readonlyRootfs)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withRestartPolicy(RestartPolicy restartPolicy)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withStdInOnce(Boolean stdInOnce) |
CreateContainerCmd |
CreateContainerCmd.withStdinOpen(Boolean stdinOpen) |
CreateContainerCmd |
CreateContainerCmd.withStopSignal(String stopSignal) |
CreateContainerCmd |
CreateContainerCmd.withStopTimeout(Integer stopTimeout) |
CreateContainerCmd |
CreateContainerCmd.withTty(Boolean tty) |
default CreateContainerCmd |
CreateContainerCmd.withUlimits(List<Ulimit> ulimits)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withUlimits(Ulimit... ulimits)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withUser(String user) |
CreateContainerCmd |
CreateContainerCmd.withVolumes(List<Volume> volumes) |
CreateContainerCmd |
CreateContainerCmd.withVolumes(Volume... volumes) |
default CreateContainerCmd |
CreateContainerCmd.withVolumesFrom(List<VolumesFrom> volumesFrom)
Deprecated.
see
getHostConfig() |
default CreateContainerCmd |
CreateContainerCmd.withVolumesFrom(VolumesFrom... volumesFrom)
Deprecated.
see
getHostConfig() |
CreateContainerCmd |
CreateContainerCmd.withWorkingDir(String workingDir) |
Copyright © 2021. All rights reserved.