1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request from vieux/no_number_default

no default default number in names
This commit is contained in:
unclejack 2014-05-31 00:55:11 +03:00
commit b46449cb33

View file

@ -524,7 +524,7 @@ func (daemon *Daemon) reserveName(id, name string) (string, error) {
func (daemon *Daemon) generateNewName(id string) (string, error) {
var name string
for i := 1; i < 6; i++ {
for i := 0; i < 6; i++ {
name = namesgenerator.GetRandomName(i)
if name[0] != '/' {
name = "/" + name