diff options
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 856313b9d..cc4c36bc9 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -451,12 +451,11 @@ func (c *Container) refresh() error { } // We need to pick up a new lock - lock, err := c.runtime.lockManager.AllocateLock() + lock, err := c.runtime.lockManager.RetrieveLock(c.config.LockID) if err != nil { return errors.Wrapf(err, "error acquiring lock for container %s", c.ID()) } c.lock = lock - c.config.LockID = c.lock.ID() if err := c.save(); err != nil { return errors.Wrapf(err, "error refreshing state for container %s", c.ID()) |