mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Merge pull request #21683 from mYmNeo/growFS
call growFS when size is a mismatch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user