Skip to main content

engine_context

Function engine_context 

Source
pub async fn engine_context(
    cx: &Context,
    engine: Engine,
) -> Result<String, ContextError>
Expand description

The Docker context behind engine on this computer, to run on it (docker --context <name>).

§Errors

ContextError::Unlisted when the contexts can’t be listed, ContextError::None when no context names engine.