Files
WSL/doc/docs/api-reference/cpp/enumerations/containerstate.md
Blue 901cb9c134 Run the documentation pipeline when doc/ is edited + various rendering fixes (#40931)
* Run the documentation pipeline when doc/ is edited + various rendering fixes

* Fix inverted condition
2026-06-28 06:43:01 -07:00

291 B

ContainerState

Container::State() casts directly from WslcContainerState.

Underlying C values:

  • Invalid = 0
  • Created = 1
  • Running = 2
  • Exited = 3
  • Deleted = 4
auto state = container.State();
if (state == static_cast<ContainerState>(2))
{
    // running
}