mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Inspect show right LogPath in json-file driver
Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
This commit is contained in:
parent
da697dbed6
commit
acf025ad1b
3 changed files with 9 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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": [{}]
|
||||
|
|
|
@ -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": [{}]
|
||||
|
|
Loading…
Add table
Reference in a new issue