From 6a3f37386b5daa979d813f610ee1f43b398d658b 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 (cherry picked from commit acf025ad1b806fd9b5eb3358a8e1d75c6aae890d) --- daemon/container.go | 1 + docs/sources/reference/api/docker_remote_api_v1.18.md | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/container.go b/daemon/container.go index 778a01c58a..4f6ff2ec00 100644 --- a/daemon/container.go +++ b/daemon/container.go @@ -1379,6 +1379,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 2197066d16..ee89ccb025 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": [{}]