A base class that provides a custom JSON serialization method.

The Serializable class offers a simple mechanism for converting class instances to JSON representation using a shallow copy of the instance's properties.

Hierarchy (View Summary)

Constructors

Properties

attach?: boolean
bindings: SuperSet<Binding>
blkio_config?: BlkioConfig
build?: Build
command?: string | string[]

Shell form is kept as a string, exec form as an argv array — docker treats them differently.

configs?: string[]
container_name?: string
depends_on: SuperSet<Readonly<Service>>
deploy?: Deploy
dns?: string[]
entrypoint?: string | string[]
env_file?: string[]
environment?: SuperSet<Readonly<Env>>
expose?: string[]
extra_hosts?: string[]
healthcheck?: HealthCheck
hostname?: string
id: string
image?: Image
labels?: KeyValue[]
name: string
network_mode?: string
networks: SuperSet<Readonly<Network>>
ports?: PortMapping[]
privileged: boolean
pull_policy?: PullPolicy
read_only?: boolean
secrets: SuperSet<Readonly<Secret>>
stop_signal?: string
working_dir?: string

Methods