mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Clarify error message when container name is already in use. Signed-off-by: Gustav Sinder <gustav.sinder@gmail.com>
Signed-off-by: gs11 <gustav.sinder@gmail.com>
This commit is contained in:
parent
c051ed7953
commit
547d6c6656
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ func (daemon *Daemon) reserveName(id, name string) (string, error) {
|
||||||
} else {
|
} else {
|
||||||
nameAsKnownByUser := strings.TrimPrefix(name, "/")
|
nameAsKnownByUser := strings.TrimPrefix(name, "/")
|
||||||
return "", fmt.Errorf(
|
return "", fmt.Errorf(
|
||||||
"Conflict. The name %q is already in use by container %s. You have to delete (or rename) that container to be able to reuse that name.", nameAsKnownByUser,
|
"Conflict. The name %q is already in use by container %s. You have to remove (or rename) that container to be able to reuse that name.", nameAsKnownByUser,
|
||||||
stringid.TruncateID(conflictingContainer.ID))
|
stringid.TruncateID(conflictingContainer.ID))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue