mirror of https://github.com/docker/docs.git
Merge pull request #12387 from x1022as/inspect-logpath
Inspect show right LogPath in json-file driver
This commit is contained in:
commit
f0c60f7085
|
@ -1406,6 +1406,7 @@ func (container *Container) startLogging() error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
container.LogPath = pth
|
||||||
|
|
||||||
dl, err := jsonfilelog.New(pth)
|
dl, err := jsonfilelog.New(pth)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -359,7 +359,10 @@ Return low-level information on the container `id`
|
||||||
"MaximumRetryCount": 2,
|
"MaximumRetryCount": 2,
|
||||||
"Name": "on-failure"
|
"Name": "on-failure"
|
||||||
},
|
},
|
||||||
"LogConfig": { "Type": "json-file", Config: {} },
|
"LogConfig": {
|
||||||
|
"Config": null,
|
||||||
|
"Type": "json-file"
|
||||||
|
},
|
||||||
"SecurityOpt": null,
|
"SecurityOpt": null,
|
||||||
"VolumesFrom": null,
|
"VolumesFrom": null,
|
||||||
"Ulimits": [{}]
|
"Ulimits": [{}]
|
||||||
|
|
|
@ -362,7 +362,10 @@ Return low-level information on the container `id`
|
||||||
"MaximumRetryCount": 2,
|
"MaximumRetryCount": 2,
|
||||||
"Name": "on-failure"
|
"Name": "on-failure"
|
||||||
},
|
},
|
||||||
"LogConfig": { "Type": "json-file", "Config": {} },
|
"LogConfig": {
|
||||||
|
"Config": null,
|
||||||
|
"Type": "json-file"
|
||||||
|
},
|
||||||
"SecurityOpt": null,
|
"SecurityOpt": null,
|
||||||
"VolumesFrom": null,
|
"VolumesFrom": null,
|
||||||
"Ulimits": [{}]
|
"Ulimits": [{}]
|
||||||
|
|
Loading…
Reference in New Issue