The "or rename" part was removed from the error-message,
because renaming wasn't possible at the time.
Now that https://github.com/docker/docker/pull/8570 is merged,
renaming existing containers is possible.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -542,7 +542,7 @@ func (daemon *Daemon) reserveName(id, name string) (string, error) {
|
| 542 | 542 |
} else {
|
| 543 | 543 |
nameAsKnownByUser := strings.TrimPrefix(name, "/") |
| 544 | 544 |
return "", fmt.Errorf( |
| 545 |
- "Conflict. The name %q is already in use by container %s. You have to delete that container to be able to reuse that name.", nameAsKnownByUser, |
|
| 545 |
+ "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, |
|
| 546 | 546 |
utils.TruncateID(conflictingContainer.ID)) |
| 547 | 547 |
} |
| 548 | 548 |
} |