device: don't persist ContainerPath of DeviceInfo

Fixes #635

`ContainerPath` isn't meaningful in sandbox's `devices.json`, because
device is sandbox level which can be referenced by many containers, and
`ContainerPath` is per container which means nothing to a sandbox level
resource.

Signed-off-by: Wei Zhang <zhangwei555@huawei.com>
This commit is contained in:
Wei Zhang 2018-08-30 23:11:56 +08:00
parent affd6e3216
commit e599ef430a

View File

@ -53,7 +53,7 @@ type DeviceInfo struct {
HostPath string
// ContainerPath is device path inside container
ContainerPath string
ContainerPath string `json:"-"`
// Type of device: c, b, u or p
// c , u - character(unbuffered)