add d_type warning to docker info, and optimize output
add d_type warning to docker info, and optimize output

The overlay(2) drivers were moved up in the list of storage drivers,
and are known to have problems if the backing filesystem does not
support d_type.

Commit 2e20e63da2a8a0ffbbb3f2146f87559e17f43046 added a warning,
which is logged in the daemon logs, however, many users do not
check those logs, and may overlook this warning.

This patch adds the same warning to the output of `docker info`
so that the warning is more easily found.

In addition, the output of warnings printed by `docker info` is
optimized, by;

- moving all warnings to the _end_ of the output, instead of
  mixing them with the regular output
- wrapping the storage-driver warnings, so that they are more
  easily readable

Example output with this patch applied
============================================

devicemapper using loopback devices:

    ...
    Insecure Registries:
     127.0.0.0/8
    Live Restore Enabled: false

    WARNING: devicemapper: usage of loopback devices is strongly discouraged for production use.
             Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
    WARNING: bridge-nf-call-iptables is disabled
    WARNING: bridge-nf-call-ip6tables is disabled

overlay2 on xfs without d_type support;

    ...
    Insecure Registries:
     127.0.0.0/8
    Live Restore Enabled: false

    WARNING: overlay2: the backing xfs filesystem is formatted without d_type support, which leads to incorrect behavior.
             Reformat the filesystem with ftype=1 to enable d_type support.
             Running without d_type support will not be supported in future releases.
    WARNING: bridge-nf-call-iptables is disabled

Signed-off-by: Sebastiaan van Stijn <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@gone.nl>

mstanleyjones/docker,x1022as/docker,coolljt0725/docker,dims/docker,pradipd/moby,resin-io/docker,yummypeng/docker,johnstep/moby-moby,haveatry/docker,yosifkit/docker,POLJM242/docker,ndeloof/docker,cyphar/docker,pramodhkp/moby,justincormack/docker,dccurtis/docker,paralin/docker,lixiaobing10051267/docker,allencloud/docker,srust/docker,miminar/docker,srust/docker,Mokolea/docker,laijs/docker,moul/docker,Syntaxide/docker,michael-holzheu/docker,qudongfang/docker,SvenDowideit/docker,tophj-ibm/moby,naveed-jamil-tenpearls/moby,HideoYamauchi/docker,KarthikNayak/docker,pradipd/moby,estesp/docker,Ramzec/docker,raja-sami-10p/moby,moypray/docker,tonistiigi/docker,yongtang/docker,bearstech/moby,scotttlin/docker,allencloud/docker,mstanleyjones/docker,haveatry/docker,diogomonica/docker,mahak/docker,KarthikNayak/docker,coreos/docker,rremer/moby,kencochrane/docker,unclejack/docker,jwhonce/docker,q384566678/docker,miminar/docker,Ramzec/docker,KingEmet/docker,dperny/docker,prertik/docker,kolyshkin/moby,darrenstahlmsft/moby,SvenDowideit/docker,justincormack/docker,prertik/docker,whuwxl/docker,konstruktoid/docker-1,kojiromike/docker,jimjag/docker,dsheets/moby,nalind/docker,shishir-a412ed/docker,sarnautov/moby,duglin/docker,mtesselH/docker,dims/docker,yongtang/docker,amatsus/docker,dccurtis/docker,mike1729/docker,ibuildthecloud/docker,thtanaka/docker,fcrisciani/docker,nawawi/docker,Mokolea/docker,rhatdan/docker,vdemeester/docker,ndeloof/docker,Syntaxide/docker,mstanleyjones/docker,ripcurld0/moby,scotttlin/docker,gnailuy/docker,yasiramin10p/moby,tmp6154/docker,darrenstahlmsft/moby,thaJeztah/docker,duglin/docker,shhsu/docker,mkumatag/docker,konstruktoid/docker-1,moypray/docker,tmp6154/docker,danyalKhaliq10p/moby,kolyshkin/docker,flavio/docker,lixiaobing10051267/docker,whuwxl/docker,tonistiigi/docker,jwhonce/docker,ripcurld0/moby,mkumatag/docker,charleszheng44/moby,erikh/docker,akira-baruah/docker,pradipd/moby,dperny/docker,YuPengZTE/docker,ffoysal/docker,sterchelen/docker,q384566678/docker,sdurrheimer/docker,paralin/docker,crosbymichael/docker,amatsus/docker,shhsu/docker,docker/docker,q384566678/docker,ripcurld0/moby,jwhonce/docker,fcrisciani/docker,YuPengZTE/docker,AkihiroSuda/docker,gnailuy/docker,jameszhan/docker,ffoysal/docker,ibuildthecloud/docker,rhatdan/docker,docker/docker,rancher/docker,thaJeztah/docker,qudongfang/docker,AkihiroSuda/docker,jthelin/docker,laijs/docker,shishir-a412ed/docker,unclejack/docker,alfred-landrum/docker,thtanaka/docker,jameszhan/docker,dmcgowan/docker,pramodhkp/moby,moby/moby,raja-sami-10p/moby,gjaskiewicz/moby,tianon/docker,maxamillion/docker,lixiaobing10051267/docker,x1022as/docker,alfred-landrum/docker,danyalKhaliq10p/moby,imkin/moby,flavio/docker,jameszhan/docker,dccurtis/docker,erikstmartin/docker,michael-holzheu/docker,kencochrane/docker,mike1729/docker,yummypeng/docker,dsheets/moby,tophj-ibm/docker,kojiromike/docker,charleszheng44/moby,coreos/docker,ColinHebert/docker,sterchelen/docker,thaJeztah/docker,estesp/docker,thaJeztah/docker,djs55/docker,tophj-ibm/docker,laijs/moby,imkin/moby,paralin/docker,Mokolea/docker,trebonian/docker,hqhq/moby,tophj-ibm/moby,bonczj/moby-json-file-logger,charleszheng44/moby,hqhq/moby,mikebrow/docker,madhanrm/docker,dmcgowan/docker,gnailuy/docker,mtesselH/docker,mixja/docker,dgageot/docker,sdurrheimer/docker,thtanaka/docker,mike1729/docker,estesp/docker,jlhawn/docker,coolljt0725/docker,srust/docker,Syntaxide/docker,YuPengZTE/docker,dgageot/docker,michael-holzheu/docker,liaoqingwei/docker,vdemeester/docker,cpuguy83/docker,resin-io/docker,jvanz/docker,moby/moby,KarthikNayak/docker,shhsu/docker,erikstmartin/docker,trebonian/docker,PatrickLang/moby,qudongfang/docker,jimjag/docker,gschaetz/moby,rancher/docker,PatrickLang/moby,yummypeng/docker,sterchelen/docker,justincormack/docker,mixja/docker,nawawi/docker,dsheets/moby,bearstech/moby,diogomonica/docker,dims/docker,kolyshkin/moby,danyalKhaliq10p/moby,bearstech/moby,noironetworks/docker,miminar/docker,cpuguy83/docker,laijs/moby,gschaetz/moby,SvenDowideit/docker,trebonian/docker,jimjag/docker,mkumatag/docker,imkin/moby,yasiramin10p/moby,jthelin/docker,dmcgowan/docker,mikebrow/docker,djs55/docker,scotttlin/docker,darrenstahlmsft/moby,gschaetz/moby,darrenstahlmsft/docker,duglin/docker,JMesser81/docker,rancher/docker,konstruktoid/docker-upstream,cpuguy83/docker,konstruktoid/docker-1,yosifkit/docker,moypray/docker,jlhawn/docker,ndeloof/docker,moul/docker,flavio/docker,gjaskiewicz/moby,catinthesky/docker,tklauser/docker,rhatdan/docker,maxamillion/docker,liaoqingwei/docker,nawawi/docker,noironetworks/docker,Mokolea/docker,erikh/docker,mtesselH/docker,jimjag/docker,kolyshkin/moby,laijs/docker,nawawi/docker,shishir-a412ed/docker,yongtang/docker,kojiromike/docker,moul/docker,kencochrane/docker,konstruktoid/docker-upstream,nalind/docker,laijs/moby,tianon/docker,mahak/docker,bonczj/moby-json-file-logger,johnstep/moby-moby,nalind/docker,sarnautov/moby,kolyshkin/docker,fcrisciani/docker,tonistiigi/docker,sarnautov/moby,darrenstahlmsft/docker,ibuildthecloud/docker,cpuguy83/docker,crosbymichael/docker,coolljt0725/docker,dperny/docker,naveed-jamil-tenpearls/moby,akira-baruah/docker,konstruktoid/docker-upstream,moby/moby,vdemeester/docker,mahak/docker,madhanrm/docker,johnstep/moby-moby,moul/docker,bearstech/moby,PatrickLang/moby,crosbymichael/docker,cyphar/docker,catinthesky/docker,sdurrheimer/docker,POLJM242/docker,mikebrow/docker,cyphar/docker,HideoYamauchi/docker,haveatry/docker,raja-sami-10p/moby,alfred-landrum/docker,ColinHebert/docker,x1022as/docker,Ramzec/docker,tklauser/docker,catinthesky/docker,allencloud/docker,prertik/docker,madhanrm/docker,noironetworks/docker,lixiaobing1/docker,hqhq/moby,mixja/docker,maxamillion/docker,AkihiroSuda/docker,konstruktoid/docker-upstream,yosifkit/docker,unclejack/docker,nalind/docker,diogomonica/docker,KingEmet/docker,amatsus/docker,jlhawn/docker,paralin/docker,tophj-ibm/moby,ibuildthecloud/docker,JMesser81/docker,lixiaobing1/docker,AkihiroSuda/docker,gjaskiewicz/moby,naveed-jamil-tenpearls/moby,mahak/docker,dgageot/docker,liaoqingwei/docker,trebonian/docker,ColinHebert/docker,yosifkit/docker,bonczj/moby-json-file-logger,djs55/docker,ibuildthecloud/docker,tophj-ibm/docker,JMesser81/docker,Ramzec/docker,coreos/docker,rremer/moby,tmp6154/docker,darrenstahlmsft/docker,tklauser/docker,pramodhkp/moby,rremer/moby,gnailuy/docker,erikstmartin/docker,whuwxl/docker,flavio/docker,KingEmet/docker,erikh/docker,jvanz/docker,ffoysal/docker,jvanz/docker,moby/moby,lixiaobing1/docker,docker/docker,HideoYamauchi/docker,yasiramin10p/moby,resin-io/docker