Commit graph

2 commits

Author SHA1 Message Date
Michael Crosby
47b9bba5e1 Improve name generation on concurrent requests
Fixes #2586

This fixes a few races where the name generator asks if a name is free
but another container takes the name before it can be reserved.  This
solves this by generating the name and setting it.  If the set fails
with a non unique error then we try again.
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
2014-05-23 17:51:16 -07:00
Solomon Hykes
b71ff21498 Move utility package 'namesgenerator' to pkg/namesgenerator 2013-12-23 23:45:18 +00:00