1
0
Fork 0
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:
mYmNeo 2016-04-12 09:27:47 +08:00
parent 2bcb6d694f
commit 34a66a14af

View file

@ -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