mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
Enable tty output from Docker Actions (#916)
* Update DockerCommandManager.cs * Update StepHost.cs Co-authored-by: Tingluo Huang <tingluohuang@github.com>
This commit is contained in:
@@ -197,7 +197,8 @@ namespace GitHub.Runner.Worker.Container
|
|||||||
|
|
||||||
dockerOptions.Add($"--workdir {container.ContainerWorkDirectory}");
|
dockerOptions.Add($"--workdir {container.ContainerWorkDirectory}");
|
||||||
dockerOptions.Add($"--rm");
|
dockerOptions.Add($"--rm");
|
||||||
|
dockerOptions.Add($"-t");
|
||||||
|
|
||||||
foreach (var env in container.ContainerEnvironmentVariables)
|
foreach (var env in container.ContainerEnvironmentVariables)
|
||||||
{
|
{
|
||||||
// e.g. -e MY_SECRET maps the value into the exec'ed process without exposing
|
// e.g. -e MY_SECRET maps the value into the exec'ed process without exposing
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ namespace GitHub.Runner.Worker.Handlers
|
|||||||
dockerCommandArgs.Add($"exec");
|
dockerCommandArgs.Add($"exec");
|
||||||
|
|
||||||
// [OPTIONS]
|
// [OPTIONS]
|
||||||
dockerCommandArgs.Add($"-i");
|
dockerCommandArgs.Add($"-it");
|
||||||
dockerCommandArgs.Add($"--workdir {workingDirectory}");
|
dockerCommandArgs.Add($"--workdir {workingDirectory}");
|
||||||
foreach (var env in environment)
|
foreach (var env in environment)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user