From c54816dfc39b00824b9d4902ed2e533b3c6c07a7 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 17 Mar 2018 20:08:27 -0400 Subject: Check for duplicate names when generating new container and pod names. This fixes the situation where we fail to create a container when a name already exists. Signed-off-by: Daniel J Walsh Closes: #517 Approved by: baude --- libpod/pod.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'libpod/pod.go') diff --git a/libpod/pod.go b/libpod/pod.go index 16b590a1c..f769ad2ed 100644 --- a/libpod/pod.go +++ b/libpod/pod.go @@ -4,7 +4,6 @@ import ( "path/filepath" "github.com/containers/storage" - "github.com/docker/docker/pkg/namesgenerator" "github.com/docker/docker/pkg/stringid" "github.com/pkg/errors" "github.com/sirupsen/logrus" @@ -52,7 +51,6 @@ func newPod(lockDir string, runtime *Runtime) (*Pod, error) { pod := new(Pod) pod.config = new(PodConfig) pod.config.ID = stringid.GenerateNonCryptoID() - pod.config.Name = namesgenerator.GetRandomName(0) pod.config.Labels = make(map[string]string) pod.runtime = runtime -- cgit v1.2.3-54-g00ecf