Container class

Container runnable.

Constructors

Container({bool? blockExternalNetwork, List<String>? commands, bool? enableImageStreaming, String? entrypoint, String? imageUri, String? options, String? password, String? username, List<String>? volumes})
Container.fromJson(Map json_)

Properties

blockExternalNetwork bool?
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.
getter/setter pair
commands List<String>?
Overrides the CMD specified in the container.
getter/setter pair
enableImageStreaming bool?
If set to true, this container runnable uses Image streaming.
getter/setter pair
entrypoint String?
Overrides the ENTRYPOINT specified in the container.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imageUri String?
The URI to pull the container image from.
getter/setter pair
options String?
Arbitrary additional options to include in the "docker run" command when running this container, e.g. "--network host".
getter/setter pair
password String?
Required if the container image is from a private Docker registry.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
Required if the container image is from a private Docker registry.
getter/setter pair
volumes List<String>?
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 If the TaskSpec.Volumes field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited