summaryrefslogtreecommitdiff
path: root/libpod/pod.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/pod.go')
-rw-r--r--libpod/pod.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index b336c2677..15899930b 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -1,7 +1,6 @@
package libpod
import (
- "os"
"path/filepath"
"github.com/containers/storage"
@@ -57,11 +56,6 @@ func newPod(lockDir string) (*Pod, error) {
// Path our lock file will reside at
lockPath := filepath.Join(lockDir, pod.id)
- // Ensure there is no conflict - file does not exist
- _, err := os.Stat(lockPath)
- if err == nil || !os.IsNotExist(err) {
- return nil, errors.Wrapf(ErrCtrExists, "lockfile for pod ID %s already exists", pod.id)
- }
// Grab a lockfile at the given path
lock, err := storage.GetLockfile(lockPath)
if err != nil {