Can't put archive into container with ExtractArchiveToContainerAsync
- Dominant language
- C#
- Stars
- 2.4k
- Forks
- 416
- PR merge metrics
- No merged PRs in 30d
Description
**Output of `dotnet --info`:**
```
.NET Core SDK (reflecting any global.json):
Version: 3.0.100-preview5-011568
Commit: b487ff10aa
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.0.100-preview5-011568\
Host (useful for support):
Version: 3.0.0-preview5-27626-15
Commit: 61f30f5a23
.NET Core SDKs installed:
2.1.700 [C:\Program Files\dotnet\sdk]
3.0.100-preview5-011568 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0-preview5-19227-01 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0-preview5-27626-15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.0-preview5-27626-15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
```
**What version of Docker.DotNet?:**
```
version 3.125.2
```
**Steps to reproduce the issue:**
1.
```csharp
var bytes = CreateTarGZ(Path.Join(assemblyPath, "sqlserver"));
using (var fileStream = new MemoryStream(bytes))
{
await dockerHelper.GetDockerClient().Containers.ExtractArchiveToContainerAsync(container.ID,
new ContainerPathStatParameters()
{
Path = "/usr/src/app"
}, fileStream);
}
```
**What actually happened?:**
Got exception:
```
System.Net.Http.HttpRequestException : The requested failed, see inner exception for details.
----> System.Net.Http.HttpRequestException : Error while copying content to a stream.
----> System.IO.IOException : Pipe is broken.
Exception doesn't have a stacktrace
```
**What did you expect to happen?:**
Expected the archive been unpacked in the container.
**Additional information:**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.