class documentation

class RestartPolicy(Enum): (source)

View In Hierarchy

Undocumented

Constant ALWAYS Restart the container whenever it stops.
Constant NEVER Do not restart the container when it stops.
Constant ON_FAILURE Restart the container only when it exits with a non-zero exit code.
Constant RESTART_POLICY_UNSPECIFIED No restart policy specified. Uses ALWAYS.

Inherited from Enum:

Class Method get_descriptor Return the protobuf EnumDescriptor for this enum.
Constant __PB2_DESCRIPTOR__ Alias for code that expects a protobuf descriptor.
Constant __PROTO_DESCRIPTOR__ Enum descriptor from the registry.
Constant __REGISTRY__ Registry for the enum and its descriptor.
Class Variable __PROTO_FULL_NAME__ Fully qualified protobuf enum name.
Class Method _missing_ Represent unknown open-enum numbers without losing their value.
ALWAYS: ellipsis = (source)

Restart the container whenever it stops.

Value
...
NEVER: ellipsis = (source)

Do not restart the container when it stops.

Value
...
ON_FAILURE: ellipsis = (source)

Restart the container only when it exits with a non-zero exit code.

Value
...
RESTART_POLICY_UNSPECIFIED: ellipsis = (source)

No restart policy specified. Uses ALWAYS.

Value
...