Function rustwide::cmd::docker_running[][src]

pub fn docker_running(workspace: &Workspace) -> bool
[]

Check whether the Docker daemon is running.

The Docker daemon is required for sandboxing to work, and this function returns whether the daemon is online and reachable or not. Calling a sandboxed command when the daemon is offline will error too, but this function allows the caller to error earlier.