Skip to main content

use_engine

Function use_engine 

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

Points the Docker CLI at engine (docker context use), as its user would in a terminal.

§Errors

engine_context’s, or ContextError::Unused when docker context use fails.