ContainerArgs

data class ContainerArgs(val blockExternalNetwork: Output<Boolean>? = null, val commands: Output<List<String>>? = null, val entrypoint: Output<String>? = null, val imageUri: Output<String>? = null, val options: Output<String>? = null, val password: Output<String>? = null, val username: Output<String>? = null, val volumes: Output<List<String>>? = null) : ConvertibleToJava<ContainerArgs>

Container runnable.

Constructors

Link copied to clipboard
constructor(blockExternalNetwork: Output<Boolean>? = null, commands: Output<List<String>>? = null, entrypoint: Output<String>? = null, imageUri: Output<String>? = null, options: Output<String>? = null, password: Output<String>? = null, username: Output<String>? = null, volumes: Output<List<String>>? = null)

Properties

Link copied to clipboard
val blockExternalNetwork: Output<Boolean>? = null

If set to true, external network access to and from container will be blocked, containers that are with block_external_network as true can still communicate with each other, network cannot be specified in the container.options field.

Link copied to clipboard
val commands: Output<List<String>>? = null

Overrides the CMD specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.

Link copied to clipboard
val entrypoint: Output<String>? = null

Overrides the ENTRYPOINT specified in the container.

Link copied to clipboard
val imageUri: Output<String>? = null

The URI to pull the container image from.

Link copied to clipboard
val options: Output<String>? = null

Arbitrary additional options to include in the "docker run" command when running this container, e.g. "--network host".

Link copied to clipboard
val password: Output<String>? = null

Optional password for logging in to a docker registry. If password matches projects/*/secrets/*/versions/* then Batch will read the password from the Secret Manager;

Link copied to clipboard
val username: Output<String>? = null

Optional username for logging in to a docker registry. If username matches projects/*/secrets/*/versions/* then Batch will read the username from the Secret Manager.

Link copied to clipboard
val volumes: Output<List<String>>? = null

Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro //////

Functions

Link copied to clipboard
open override fun toJava(): ContainerArgs