Use quoted form of container name and container id

Use quoted form of container name and container id to improve copy-paste avoiding the extra `.` that slips into the clipboard

Signed-off-by: Jorge Marin <chipironcin@users.noreply.github.com>
This commit is contained in:
Jorge Marin 2016-12-28 11:30:26 +00:00
parent 24c4226dc7
commit 2bee1cfd5a
1 changed files with 2 additions and 2 deletions

View File

@ -73,9 +73,9 @@ func (daemon *Daemon) reserveName(id, name string) (string, error) {
logrus.Errorf("got unexpected error while looking up reserved name: %v", err)
return "", err
}
return "", fmt.Errorf("Conflict. The container name %q is already in use by container %s. You have to remove (or rename) that container to be able to reuse that name.", name, id)
return "", fmt.Errorf("Conflict. The container name %q is already in use by container %q. You have to remove (or rename) that container to be able to reuse that name.", name, id)
}
return "", fmt.Errorf("error reserving name: %s, error: %v", name, err)
return "", fmt.Errorf("error reserving name: %q, error: %v", name, err)
}
return name, nil
}