ContainerResponse

data class ContainerResponse(val blockExternalNetwork: Boolean, val commands: List<String>, val entrypoint: String, val imageUri: String, val options: String, val password: String, val username: String, val volumes: List<String>)

Container runnable.

Constructors

Link copied to clipboard
fun ContainerResponse(blockExternalNetwork: Boolean, commands: List<String>, entrypoint: String, imageUri: String, options: String, password: String, username: String, volumes: List<String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

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

Overrides the ENTRYPOINT specified in the container.

Link copied to clipboard

The URI to pull the container image from.

Link copied to clipboard

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

Link copied to clipboard

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

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

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 //////