Skip to content

dsdk / config / withContext

Function: withContext() ​

withContext(contextName, callback): Promise<void>

Use the connection credentials from an existing Docker context when running the callback function.

Parameters ​

ParameterType

contextName

string

callback

() => void | Promise<void>

Returns ​

Promise<void>