Inspect show right LogPath in json-file driver
Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
(cherry picked from commit acf025ad1b
)
This commit is contained in:
parent
d9a0c05208
commit
6a3f37386b
2 changed files with 5 additions and 1 deletions
|
@ -1379,6 +1379,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": [{}]
|
||||||
|
|
Loading…
Add table
Reference in a new issue