Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bar10dr opened this issue Feb 15, 2022 · 1 comment
Open
Assignees
Labels
Milestone

Comments

@bar10dr
Copy link

bar10dr commented Feb 15, 2022

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

@mariotoffia mariotoffia self-assigned this Feb 17, 2022
@mariotoffia mariotoffia added this to To do in FluentDocker via automation Feb 17, 2022
@mariotoffia mariotoffia added this to the 3.0.0-RELEASE milestone Feb 17, 2022
@mariotoffia
Copy link
Owner

Thanks! @bar10dr added to fix list!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
FluentDocker
  
To do
Development

No branches or pull requests

2 participants