dotnet / dotnet/Docker.DotNet

Start/run container with -i option

Open
#224 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
2.4k
Forks
416
PR merge metrics
No merged PRs in 30d

Description

I'm using the following code to create my `CreateContainerParameters`

```c#
Config createContainerParameters = new Config {
Image = "911fc62f478e",
ArgsEscaped = false,
AttachStderr = false,
AttachStdin = true,
AttachStdout = true,
Entrypoint = new string[] { "ffprobe" },
Cmd = new string[] {
"-i", "pipe:0",
"-v", "quiet",
"-print_format", "json",
"-select_streams", "v:0",
"-show_entries", "stream=nb_frames"
},
OpenStdin = true,
StdinOnce = true
};
```

I need to add the the interactive flag `-i` when the container runs.

I need the container command to run like this:
```
docker run -i --entrypoint ffprobe [COMMAND]
```

How can I accomplish this?

**Output of `dotnet --info`:**

```
.NET Command Line Tools (1.0.4)

Product Information:
Version: 1.0.4
Commit SHA-1 hash: af1e6684fd

Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /usr/share/dotnet/sdk/1.0.4
```

**What version of Docker.DotNet?:**

```
2.124.3
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.