зеркало из https://github.com/microsoft/docker.git
fix doc
Signed-off-by: Zhang Kun <zkazure@gmail.com> fix doc Signed-off-by: Zhang Kun <zkazure@gmail.com>
This commit is contained in:
Родитель
59fe485f0d
Коммит
82ba25bea9
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче