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 9e37833 commit bc5b267Copy full SHA for bc5b267
libpod/volume.go
@@ -289,7 +289,14 @@ func (v *Volume) UsesVolumeDriver() bool {
289
// Pinned returns whether this volume is marked as pinned.
290
// Pinned volumes are excluded from system prune operations by default.
291
func (v *Volume) Pinned() bool {
292
- return v.config.Pinned
+ v.lock.Lock()
293
+ defer v.lock.Unlock()
294
+
295
+ if err := v.update(); err != nil {
296
+ return false
297
+ }
298
299
+ return v.state.Pinned
300
}
301
302
// SetPinned sets the pinned status of the volume.
0 commit comments