Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82ba25b

Browse files
committed
fix doc
Signed-off-by: Zhang Kun <[email protected]> fix doc Signed-off-by: Zhang Kun <[email protected]>
1 parent 59fe485 commit 82ba25b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/reference/commandline/volume_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Multiple containers can use the same volume in the same time period. This is use
3333
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:
3434

3535
```
36-
A volume named %s already exists with the %s driver. Choose a different volume name.
36+
A volume named "hello" already exists with the "some-other" driver. Choose a different volume name.
3737
```
3838

3939
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.

errors/daemon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ var (
917917
// trying to create a volume that has existed using different driver.
918918
ErrorVolumeNameTaken = errcode.Register(errGroup, errcode.ErrorDescriptor{
919919
Value: "VOLUME_NAME_TAKEN",
920-
Message: "A volume name %s already exists with the %s driver. Choose a different volume name.",
920+
Message: "A volume named %q already exists with the %q driver. Choose a different volume name.",
921921
Description: "An attempt to create a volume using a driver but the volume already exists with a different driver",
922922
HTTPStatusCode: http.StatusInternalServerError,
923923
})

0 commit comments

Comments
 (0)