Docker storage driver配置
docker storage driver配置
配置说明
利用container-storage-setup来配置direct-lvm
Contianer-storage-setup的配置参考 https://github.com/projectatomic/container-storage-setup
能够自动根据盘来创建direct-lvm所需要的lvm,并且自动生成dockerd启动的时候需要设置的关于存储相关的参数.可以通过STORAGE_OPTIONS=”–storage-driver devicemapper “来指定所需要的container-storage-setup配置所需要的参数修改dockerd的启动参数,可以通过systemd对应的配置文件修改
通过docker info参考对应的storage-driver是否是所设置的
FAQ
使用docker storage driver使用direct-lvm+devepper mapper,docker无法启动
Error msg level=fatal msg="Error starting daemon: error initializing graphdriver: Unable to take ownership of thin-pool (dockerVG-docker--pool) that already has used data blocks"
问题:
/var/lib/docker/里面有残留数据,导致docker无法启动恢复步骤
stop docker
lvremove /dev/vg_name/lv_name
Vgremove /dev/vg_name
重新配置container_storage_setup
start docker
Link
https://bugzilla.redhat.com/show_bug.cgi?id=1321640
https://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/index.html
https://docs.docker.com/engine/userguide/storagedriver/selectadriver/
https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driv
更多推荐
所有评论(0)