Don't show Docker containers in Disk widget
This commit is contained in:
parent
2043837fd8
commit
67e0fedbed
|
@ -64,6 +64,10 @@ func (self *Disk) update() {
|
||||||
if strings.HasPrefix(Part.Device, "/dev/loop") {
|
if strings.HasPrefix(Part.Device, "/dev/loop") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
// don't show docker container filesystems
|
||||||
|
if strings.HasPrefix(Part.Mountpoint, "/var/lib/docker/") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
// check if partition doesn't already exist in our list
|
// check if partition doesn't already exist in our list
|
||||||
if _, ok := self.Partitions[Part.Device]; !ok {
|
if _, ok := self.Partitions[Part.Device]; !ok {
|
||||||
self.Partitions[Part.Device] = &Partition{
|
self.Partitions[Part.Device] = &Partition{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user