FluentDocker
FluentDocker copied to clipboard
Use docker, docker-compose local and remote in tests and your .NET core/full framework apps via a FluentAPI
`using (var logs = dockerHost.Host.Logs(container.Id, follow: true, since: DateTime.Now))` Results in Ductus.FluentDocker: cmd: C:\Program Files\Docker\Docker\resources\bin\docker.exe - arg: logs -f --since 15.02.2022 05:14:11 --tail=all cd127ec758de730a907aed5c03b9f7820db91c9d5375eee393946dc228c2983a The resulting log lines read _"\"docker...
# Issue StreamProcessExecutor fails if SudoMechanism Password is set. ## Exception ``` System.ComponentModel.Win32Exception An error occurred trying to start process 'echo ******** | sudo -S /usr/bin/docker' with working directory '/mnt/data/dev/fluentdocker.demo/bin/Debug/net6.0'....
The reason why you would multi-target .NET Standard 2.0 + .NET Standard 2.1 is to take advantage of APIs in .NET Standard 2.1 that are not available in .NET Standard...
ContainerBuilder cb = new Builder().UseContainer() .UseImage(ImageAndTag) .Command(Command, Arg) .WithName(Name) .WithIPC(string.IsNullOrWhiteSpace(IPC) ? string.Empty : IPC) .UseNetwork(string.IsNullOrWhiteSpace(Network) ? string.Empty : Network); I can not find a param to set shm-size.
This is the command driver infrastructure with the docker binary (shell) implementation. This will allow for plugging a driver such as REST or other to communicate with the docker daemon.
WaitForHealthy uses `Timespan timeout = default` which is indefinitely. WaitForPort uses `double millisTimeout = double.MaxValue` which also feels like indefinitely. Perhaps it would be better to have a 10 minute...
The recently released Docker Compose V2 (https://github.com/docker/compose/releases/tag/v2.0.0) introduces the following change: _container names use hyphens to produce a valid hostname_ This breaks the container name parsing in `ExtractName` in `Ductus.FluentDocker/Services/Impl/DockerComposeCompositeService.cs`...
I wanted to display the output of a docker-compose call in a CLI I am building.
As I mentioned in #196, figuring out how to get much of the info on container is hard. Something else I just realized I can't find is the `Created` date...
As this Issue #160 points out, the new docker -H flag can directly address a ssh:// scheme to connect to a remote daemon without setting up a remote docker-machine. Hence,...