StartAndAttachContainerExecAsync throws NotFound
- Dominant language
- C#
- Stars
- 2.4k
- Forks
- 416
- PR merge metrics
- No merged PRs in 30d
Description
**Output of `dotnet --info`:**
```
.NET Command Line Tools (2.1.2)
Product Information:
Version: 2.1.2
Commit SHA-1 hash: 5695315371
Runtime Environment:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\pf\dotnet\sdk\2.1.2\
Microsoft .NET Core Shared Framework Host
Version : 2.0.3
Build : a9190d4a75f4a982ae4b4fa8d1a24526566c69df
```
**What version of Docker.DotNet?:**
```
3.125.0
```
**What version of Docker:**
```
Version 17.09.1-ce-win42 (14687)
Channel: stable
3176a6a
```
**Steps to reproduce the issue:**
Run this code:
```
var containerCreateResponse = await client.Containers.CreateContainerAsync(
new CreateContainerParameters
{
Image = "hello-world:latest",
});
var multiplexed = await client.Containers.StartAndAttachContainerExecAsync(containerCreateResponse.ID, false);
```
**What actually happened?:**
Getting this exception:
Docker API responded with status code=NotFound, response=
**What did you expect to happen?:**
I should get a multiplexed stream.
**Additional information:**
If I start my container like
`await client.Containers.StartContainerAsync(containerCreateResponse.ID, new ContainerStartParameters { });`
then it works
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.