mirror of https://github.com/docker/docs.git
Merge pull request #21683 from mYmNeo/growFS
call growFS when size is a mismatch
This commit is contained in:
commit
b006f7f640
|
@ -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…
Reference in New Issue