Docker.DotNet
Docker.DotNet copied to clipboard
:whale: .NET (C#) Client Library for Docker API
### Context In the current version of Docker.DotNet (v3.125.15), there is no support for handling the [Systemerr](https://pkg.go.dev/github.com/docker/docker/pkg/stdcopy#StdType) stream when demultiplexing events from Docker. When docker sends `Systemerr`, the library throws...
I'm attempting to dynamically assign a random port to a container upon its creation. I've been experimenting with various configurations, including setting the PortBindings property to null and trying different...
**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:...
Allows extracting Tar balls with original owner. See spec [ContainerPathStatParameters](https://docs.docker.com/engine/api/v1.45/#tag/Container/operation/PutContainerArchive)
Uploading and extracting a tarball with embeeded permissions is [supported by the spec](https://docs.docker.com/engine/api/v1.45/#tag/Container/operation/PutContainerArchive), but the necessary parameter is missing from `ContainerPathStatParameters.Generated.cs`. I've [submitted PR ](https://github.com/dotnet/Docker.DotNet/pull/683) to address this
**Output of `dotnet --info`:** ``` Host: Version: 6.0.27 Architecture: x64 Commit: 80de56dadb .NET runtimes installed: Microsoft.AspNetCore.App 6.0.27 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.27 [/usr/share/dotnet/shared/Microsoft.NETCore.App] ``` **What version of Docker.DotNet?:** 3.125.15 ``` ---> System.Net.Sockets.SocketException...
# Problem I am trying to get the disk usage size of a container using `docker inspect`. [`InspectContainerAsync`](https://github.com/dotnet/Docker.DotNet/blob/c0f44a7000221a7bc1ced1154939e19caeea067a/src/Docker.DotNet/Endpoints/ContainerOperations.cs#L66) call returns a [`ContainerInspectResponse`](https://github.com/dotnet/Docker.DotNet/blob/c0f44a7000221a7bc1ced1154939e19caeea067a/src/Docker.DotNet/Models/ContainerInspectResponse.Generated.cs#L107) object that contains `SizeRw` and `SizeRootFs` fields. However,...
hi What is the equivalent in CreateContainerAsync() for specifying the --network option in docker run. Thanks
Hi, I'm using System.MonitorEventsAsync and connecting to a tcp socket. Sometimes the machine I'm connecting to is restarted and I lose connection, how can I detect this and reconnect? ```c#...
Im trying to use the BuildImageFromDockerfileAsync but i get an error response stating unexpected EOF. I cant find any examples of how to use it.