From acf025ad1b806fd9b5eb3358a8e1d75c6aae890d Mon Sep 17 00:00:00 2001 From: Deng Guangxing Date: Wed, 15 Apr 2015 11:15:50 +0800 Subject: [PATCH] Inspect show right LogPath in json-file driver Signed-off-by: Deng Guangxing --- daemon/container.go | 1 + docs/sources/reference/api/docker_remote_api_v1.18.md | 5 ++++- docs/sources/reference/api/docker_remote_api_v1.19.md | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) 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": [{}]