diff --git a/dockerclient.go b/dockerclient.go index b52d52b..a617a52 100644 --- a/dockerclient.go +++ b/dockerclient.go @@ -228,6 +228,9 @@ func (client *DockerClient) ContainerLogs(id string, options *LogOptions) (io.Re if options.Tail > 0 { v.Add("tail", strconv.FormatInt(options.Tail, 10)) } + if options.Since > 0 { + v.Add("since", strconv.Itoa(options.Since)) + } uri := fmt.Sprintf("/%s/containers/%s/logs?%s", APIVersion, id, v.Encode()) req, err := http.NewRequest("GET", client.URL.String()+uri, nil) diff --git a/types.go b/types.go index 65cf93e..59813ec 100644 --- a/types.go +++ b/types.go @@ -110,6 +110,7 @@ type LogOptions struct { Stderr bool Timestamps bool Tail int64 + Since int } type AttachOptions struct {