mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Grow the container rootfs when it is necessary
Signed-off-by: mYmNeo <thomassong@tencent.com>
This commit is contained in:
parent
2bcb6d694f
commit
34a66a14af
1 changed files with 1 additions and 1 deletions
|
@ -1880,7 +1880,7 @@ func (devices *DeviceSet) AddDevice(hash, baseHash string, storageOpt map[string
|
|||
}
|
||||
|
||||
// Grow the container rootfs.
|
||||
if size > 0 {
|
||||
if size > baseInfo.Size {
|
||||
info, err := devices.lookupDevice(hash)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Reference in a new issue