Function rustwide::cmd::docker_running

source ·
pub fn docker_running(workspace: &Workspace) -> bool
Expand description

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.