Don't show Docker containers in Disk widget

This commit is contained in:
Caleb Bassi 2018-12-10 11:10:28 -08:00
parent 2043837fd8
commit 67e0fedbed

View File

@ -64,6 +64,10 @@ func (self *Disk) update() {
if strings.HasPrefix(Part.Device, "/dev/loop") {
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
if _, ok := self.Partitions[Part.Device]; !ok {
self.Partitions[Part.Device] = &Partition{