From 82ba25bea9ae8412186e4cd1d3ba30e6a2072a26 Mon Sep 17 00:00:00 2001 From: Zhang Kun Date: Fri, 30 Oct 2015 10:48:56 +0800 Subject: [PATCH] fix doc Signed-off-by: Zhang Kun fix doc Signed-off-by: Zhang Kun --- docs/reference/commandline/volume_create.md | 2 +- errors/daemon.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/commandline/volume_create.md b/docs/reference/commandline/volume_create.md index f91c1e415c..b484724ffb 100644 --- a/docs/reference/commandline/volume_create.md +++ b/docs/reference/commandline/volume_create.md @@ -33,7 +33,7 @@ Multiple containers can use the same volume in the same time period. This is use Volume names must be unique among drivers. This means you cannot use the same volume name with two different drivers. If you attempt this `docker` returns an error: ``` -A volume named %s already exists with the %s driver. Choose a different volume name. +A volume named "hello" already exists with the "some-other" driver. Choose a different volume name. ``` If you specify a volume name already in use on the current driver, Docker assumes you want to re-use the existing volume and does not return an error. diff --git a/errors/daemon.go b/errors/daemon.go index d406d271d4..1a13e74918 100644 --- a/errors/daemon.go +++ b/errors/daemon.go @@ -917,7 +917,7 @@ var ( // trying to create a volume that has existed using different driver. ErrorVolumeNameTaken = errcode.Register(errGroup, errcode.ErrorDescriptor{ Value: "VOLUME_NAME_TAKEN", - Message: "A volume name %s already exists with the %s driver. Choose a different volume name.", + Message: "A volume named %q already exists with the %q driver. Choose a different volume name.", Description: "An attempt to create a volume using a driver but the volume already exists with a different driver", HTTPStatusCode: http.StatusInternalServerError, })