Browse Source

Inspect show right LogPath in json-file driver

Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
Deng Guangxing 10 years ago
parent
commit
acf025ad1b

+ 1 - 0
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 {

+ 4 - 1
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": [{}]

+ 4 - 1
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": [{}]