DockerAliases.

DockerRun(ICakeContext, string, string, string[]) Method

Summary

Creates a new container using default settings.
Assembly
Cake.Docker.dll
Namespace
Cake.Docker
Containing Type
DockerAliases

Syntax

public static string DockerRun(this ICakeContext context, string image, string command, params string[] args)

Remarks

Return value is first line from stdout. This method will redirect stdout and it won't be available for capture.

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
image string The image.
command string The command.
args string[] The arguments.

Return Value

Type Description
string Container ID