DemandFlow Support Centre

CONTAINERRUNTIME: Container Runtime

ReferenceEntity Reference16/04/2026Updated 16/04/2026
The CONTAINERRUNTIME entity stores container runtimes. A running container instance on a host, tracking its lifecycle, resource usage, networking, storage, and health status.

CONTAINERRUNTIME: Container Runtime

The CONTAINERRUNTIME entity stores container runtimes. A running container instance on a host, tracking its lifecycle, resource usage, networking, storage, and health status.

Default definition. This article describes the default CONTAINERRUNTIME definition shipped with DemandFlow. Administrators can add, remove, rename, or re-type fields, change which ones are required, and alter the layout from the Definitions screen in Settings. Your tenant's current schema may differ from what is shown here. To read the current definition at any time, GET the DEFINITION object whose id matches CONTAINERRUNTIME.

Entity properties

PropertyValue
Entity codeCONTAINERRUNTIME
Display nameContainer Runtime
PluralContainer Runtimes
Level423

Use cases

CONTAINERRUNTIME represents an actual running container as opposed to DOCKERIMAGE (the template) or K8SWORKLOAD (the Kubernetes abstraction). It captures the container ID, image (objectLookup to DOCKERIMAGE), host (objectLookup to COMPINV for the physical/virtual machine), and runtime status (Running, Stopped, Paused, Restarting, Created, Exited, Dead, Removing).

Fields

Container Information

FieldTypeRequiredNotes
nametextYesContainer Name
containerIdtextContainer ID. Read-only
imagereference → DOCKERIMAGEYesImage
hostreference → COMPINVHost
workloadreference → K8SWORKLOADK8s Workload
k8sNamespacereference → K8SNAMESPACEK8s Namespace
statusenumYesStatus. Valid ids: 1 (Running), 2 (Stopped), 3 (Paused), 4 (Restarting), 5 (Created), 6 (Exited), 7 (Dead), 8 (Removing).

Runtime Configuration

FieldTypeRequiredNotes
runtimeenumContainer Runtime. Valid ids: 1 (Docker), 2 (containerd), 3 (CRI-O), 4 (Podman), 5 (rkt), 6 (LXC).
restartPolicyenumRestart Policy. Valid ids: 1 (No), 2 (Always), 3 (On-failure), 4 (Unless-stopped).
restartCountnumberRestart Count. Read-only
maxRestartsnumberMax Restarts
privilegedbooleanPrivileged
readOnlybooleanRead-only Root

Lifecycle

FieldTypeRequiredNotes
createdDatedatetimeCreated. Read-only
startedDatedatetimeStarted. Read-only
finishedDatedatetimeFinished. Read-only
uptimetextUptime. Read-only
exitCodenumberExit Code. Read-only
pidnumberProcess ID. Read-only

Resource Limits

FieldTypeRequiredNotes
cpuLimitnumberCPU cores
cpuRequestnumberCPU cores
memoryLimitnumberMemory Limit (MB)
memoryRequestnumberMemory Request (MB)
memorySwapnumberMemory + Swap (MB)
sharedMemorynumberShared Memory (MB)
diskQuotanumberDisk Quota (GB)
pidsLimitnumberPIDs Limit

Resource Usage

FieldTypeRequiredNotes
cpuUsagetextCPU Usage %. Read-only
cpuThrottletextCPU Throttle %. Read-only
memoryUsagetextMemory Usage %. Read-only
memoryUsedMBnumberMemory Used (MB). Read-only
diskUsednumberDisk Used (GB). Read-only
networkInnumberNetwork In (MB). Read-only
networkOutnumberNetwork Out (MB). Read-only
processCountnumberProcess Count. Read-only

Network Configuration

FieldTypeRequiredNotes
networkModeenumNetwork Mode. Valid ids: 1 (Bridge), 2 (Host), 3 (None), 4 (Container), 5 (Custom).
hostnametextHostname
domainNametextDomain Name
ipAddresstextIP Address. Read-only
macAddresstextMAC Address
dnsServerstext (multi-line)One per line

Port Mappings

FieldTypeRequiredNotes
portMappingstext (multi-line)host:container port mappings (JSON)
exposedPortstext (multi-line)Container exposed ports
networkAliasestext (multi-line)Network-scoped aliases
extraHoststext (multi-line)Additional host entries

Volume Mounts

FieldTypeRequiredNotes
volumestext (multi-line)Volume mount configurations (JSON)
bindstext (multi-line)Host path bindings
tmpfstext (multi-line)Temporary filesystem mounts

Storage Configuration

FieldTypeRequiredNotes
storageDriverenumStorage Driver. Valid ids: 1 (overlay2), 2 (aufs), 3 (devicemapper), 4 (btrfs), 5 (zfs), 6 (vfs).
readOnlyRootfsbooleanRead-only Root FS
volumesFromtextInherit volumes from containers
workingDirtextWorking Directory

Environment Configuration

FieldTypeRequiredNotes
environmenttext (multi-line)Container environment (JSON)
envFiletext (multi-line)Environment file paths
usertextUser:Group
workingDirectorytextWorking Directory
entrypointtextEntrypoint
commandtextCommand
labelstext (multi-line)Container labels (JSON)

Security Context

FieldTypeRequiredNotes
securityOptstext (multi-line)Security options (JSON)
capabilitiestext (multi-line)Linux capabilities (JSON)
apparmortextAppArmor Profile
selinuxtextSELinux Context
noNewPrivilegesbooleanNo New Privileges
userNamespacebooleanUser Namespace

Runtime Security

FieldTypeRequiredNotes
seccompProfiletextSeccomp Profile
devicestext (multi-line)Allowed devices (JSON)
ulimitstext (multi-line)Resource limits (JSON)
sysctlstext (multi-line)Kernel parameters (JSON)
cgroupParenttextCgroup Parent

Health Check

FieldTypeRequiredNotes
healthchecktext (multi-line)Health check configuration (JSON)
healthStatusenumHealth Status. Valid ids: 1 (Healthy), 2 (Unhealthy), 3 (Starting), 4 (None).
healthCheckIntervalnumberCheck Interval (sec)
healthCheckTimeoutnumberCheck Timeout (sec)
healthCheckRetriesnumberRetries
healthCheckStartPeriodnumberStart Period (sec)
lastHealthCheckdatetimeLast Health Check. Read-only
failingStreaknumberFailing Streak. Read-only

Container Logs

FieldTypeRequiredNotes
logDriverenumLog Driver. Valid ids: 1 (json-file), 2 (syslog), 3 (journald), 4 (gelf), 5 (fluentd), 6 (awslogs), 7 (splunk), 8 (none).
logOptionstext (multi-line)Log driver options (JSON)
logstext (multi-line)Recent Logs. Read-only
logSizenumberLog Size (MB). Read-only
maxLogSizenumberMax Log Size (MB)

Container Events

FieldTypeRequiredNotes
eventstext (multi-line)Container lifecycle events. Read-only
lastEventdatetimeLast Event. Read-only
startCountnumberStart Count. Read-only
stopCountnumberStop Count. Read-only
errorCountnumberError Count. Read-only

Performance Metrics

FieldTypeRequiredNotes
cpuPercenttextCPU %. Read-only
memoryPercenttextMemory %. Read-only
diskIOReadnumberDisk Read (MB/s). Read-only
diskIOWritenumberDisk Write (MB/s). Read-only
networkRxRatenumberNetwork RX (MB/s). Read-only
networkTxRatenumberNetwork TX (MB/s). Read-only
blockIOReadnumberBlock IO Read. Read-only
blockIOWritenumberBlock IO Write. Read-only

Container Actions

FieldTypeRequiredNotes
actionButtonstext (multi-line)Start, Stop, Restart, Pause, Kill, Remove. Read-only
lastActiontextLast Action. Read-only
lastActionTimedatetimeLast Action Time. Read-only
executionHistorytext (multi-line)Commands executed in container. Read-only

Relationships

  • Lookups: image points at a DOCKERIMAGE record; host points at a COMPINV record; workload points at a K8SWORKLOAD record; k8sNamespace points at a K8SNAMESPACE record.

Creating a Container Runtime via the API

POST /v1/objects
Authorization: Bearer <your-pat>
Content-Type: application/json

{
  "entity":   "CONTAINERRUNTIME",
  "level":    423,
  "comboKey": "SUB:<your-sub-id>|ENT:",
  "name":        "Example value",
  "image":       "",
  "status":      "1",
  "k8sNamespace": ""
}

Listing Container Runtimes

GET /v1/entities/CONTAINERRUNTIME/SUB

See also

containerruntimecontainer runtimecontainer runtimescontainer

Was this article helpful?

← Back to Knowledge Base