Skip to content

Wrong timeformat using the since option in IHostService.Host.Logs() #242

@bar10dr

Description

@bar10dr

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 logs" requires exactly 1 argument."

The Docker documentation states that the time format should be RFC3339.

Should output
--since 2022-02-15T05:14:11Z

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions