This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Docker.
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 |
---|---|
Cake |
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 |