diff --git a/daemon/container.go b/daemon/container.go index f89db5cfcf..1400e967fb 100644 --- a/daemon/container.go +++ b/daemon/container.go @@ -1405,6 +1405,7 @@ func (container *Container) startLogging() error { if err != nil { return err } + container.LogPath = pth dl, err := jsonfilelog.New(pth) if err != nil { diff --git a/docs/sources/reference/api/docker_remote_api_v1.18.md b/docs/sources/reference/api/docker_remote_api_v1.18.md index c69ade36a4..a7e5e55919 100644 --- a/docs/sources/reference/api/docker_remote_api_v1.18.md +++ b/docs/sources/reference/api/docker_remote_api_v1.18.md @@ -359,7 +359,10 @@ Return low-level information on the container `id` "MaximumRetryCount": 2, "Name": "on-failure" }, - "LogConfig": { "Type": "json-file", Config: {} }, + "LogConfig": { + "Config": null, + "Type": "json-file" + }, "SecurityOpt": null, "VolumesFrom": null, "Ulimits": [{}] diff --git a/docs/sources/reference/api/docker_remote_api_v1.19.md b/docs/sources/reference/api/docker_remote_api_v1.19.md index 524f77037f..932ee54716 100644 --- a/docs/sources/reference/api/docker_remote_api_v1.19.md +++ b/docs/sources/reference/api/docker_remote_api_v1.19.md @@ -359,7 +359,10 @@ Return low-level information on the container `id` "MaximumRetryCount": 2, "Name": "on-failure" }, - "LogConfig": { "Type": "json-file", "Config": {} }, + "LogConfig": { + "Config": null, + "Type": "json-file" + }, "SecurityOpt": null, "VolumesFrom": null, "Ulimits": [{}]