Remove dm.no_warn_on_loop_devices in info warning
I think we doesn't provide dm.no_warn_on_loop_devices option
at all. I didn't found any code to handle this option.
Signed-off-by: Lei Jitang <leijitang@huawei.com>
(cherry picked from commit 2aa01e0fbc
)
This commit is contained in:
parent
3657275ca0
commit
bb09b3e5f1
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ func (cli *DockerCli) CmdInfo(args ...string) error {
|
||||||
|
|
||||||
// print a warning if devicemapper is using a loopback file
|
// print a warning if devicemapper is using a loopback file
|
||||||
if pair[0] == "Data loop file" {
|
if pair[0] == "Data loop file" {
|
||||||
fmt.Fprintln(cli.err, " WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.")
|
fmt.Fprintln(cli.err, " WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specifies a custom block storage device.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -440,7 +440,7 @@ Storage Driver: devicemapper
|
||||||
Deferred Deletion Enabled: false
|
Deferred Deletion Enabled: false
|
||||||
Deferred Deleted Device Count: 0
|
Deferred Deleted Device Count: 0
|
||||||
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
|
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
|
||||||
WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
|
WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specifies a custom block storage device.
|
||||||
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
|
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
|
||||||
Library Version: 1.02.90 (2014-09-01)
|
Library Version: 1.02.90 (2014-09-01)
|
||||||
Logging Driver: json-file
|
Logging Driver: json-file
|
||||||
|
|
Loading…
Reference in a new issue