Browse Source

Merge pull request #12387 from x1022as/inspect-logpath

Inspect show right LogPath in json-file driver
Brian Goff 10 years ago
parent
commit
f0c60f7085

+ 1 - 0
daemon/container.go

@@ -1406,6 +1406,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

@@ -362,7 +362,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": [{}]