ContainerInspectInfo class
The complete inspect response for a single Docker container.
Returned by DockerClient.containerInspectInfo and by
ComposeContainer.containerInfo. All fields are optional — Docker's
API may omit fields depending on the daemon version and container state.
Constructors
-
ContainerInspectInfo({String? id, String? created, String? path, List<
String> ? args, ContainerState? state, String? image, String? resolvConfPath, String? hostnamePath, String? hostsPath, String? logPath, String? name, int? restartCount, String? driver, String? platform, ContainerImageManifestDescriptor? imageManifestDescriptor, String? mountLabel, String? processLabel, String? appArmorProfile, List<String> ? execIDs, ContainerHostConfig? hostConfig, ContainerGraphDriver? graphDriver, int? sizeRw, int? sizeRootFs, List<ContainerMount> ? mounts, ContainerConfig? config, ContainerNetworkSettings? networkSettings}) -
Creates a ContainerInspectInfo with the given fields.
const
-
ContainerInspectInfo.fromJson(Map<
String, dynamic> json) -
Deserialises a ContainerInspectInfo from the raw JSON map returned by
GET /containers/{id}/json.factory
Properties
- appArmorProfile → String?
-
AppArmor profile applied to the container.
final
-
args
→ List<
String> ? -
Arguments passed to path.
final
- config → ContainerConfig?
-
Image-level and runtime configuration.
final
- created → String?
-
RFC 3339 timestamp when the container was created.
final
- driver → String?
-
Storage driver used for the container's writable layer.
final
-
execIDs
→ List<
String> ? -
List of exec IDs currently running inside the container.
final
- graphDriver → ContainerGraphDriver?
-
Storage driver metadata for the container's layers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostConfig → ContainerHostConfig?
-
Host-level resource and runtime configuration.
final
- hostnamePath → String?
-
Path to the container's hostname file on the host.
final
- hostsPath → String?
-
Path to the container's
/etc/hostsfile on the host.final - id → String?
-
Full container ID (64-character hex string).
final
- image → String?
-
Image ID (
sha256:…) that the container was created from.final - imageManifestDescriptor → ContainerImageManifestDescriptor?
-
OCI image manifest descriptor (present on Docker 25+ for multi-arch
images).
final
- logPath → String?
-
Path to the container's log file on the host.
final
- mountLabel → String?
-
SELinux label applied to the container's mounts.
final
-
mounts
→ List<
ContainerMount> ? -
Active volume and bind mounts.
final
- name → String?
-
Container name (prefixed with
/, e.g.'/myapp').final - networkSettings → ContainerNetworkSettings?
-
Network state and per-network connection details.
final
- path → String?
-
Entrypoint or command path.
final
- platform → String?
-
Platform (OS) the container is running on.
final
- processLabel → String?
-
SELinux label applied to the container process.
final
- resolvConfPath → String?
-
Path to the
resolv.conffile on the host.final - restartCount → int?
-
Number of times the container has been restarted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeRootFs → int?
-
Total size of all image layers in bytes.
final
- sizeRw → int?
-
Size of the container's writable layer in bytes.
final
- state → ContainerState?
-
Current lifecycle and health state.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited