We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385c659 commit 1a86b57Copy full SHA for 1a86b57
container/common/fsHandler.go
@@ -96,7 +96,12 @@ func (fh *realFsHandler) update() error {
96
fh.usage.TotalUsageBytes = rootUsage.Bytes
97
}
98
if fh.extraDir != "" && extraErr == nil {
99
- fh.usage.TotalUsageBytes += extraUsage.Bytes
+ if fh.rootfs != "" {
100
+ fh.usage.TotalUsageBytes += extraUsage.Bytes
101
+ } else {
102
+ // rootfs is empty, totalUsageBytes use extra usage bytes
103
+ fh.usage.TotalUsageBytes = extraUsage.Bytes
104
+ }
105
106
107
// Combine errors into a single error to return
0 commit comments