Adding Vivek, not sure he's on this list.
docker-storage-setup includes an example conf file:
/usr/lib/docker-storage-setup/docker-storage-setup
Perhaps there are some other options to that should be exposed to the UI?
If it's helpful, here is an ansible I use to reprovision docker storage for testing. I think most of this could (should?) probably be added to docker-storage-setup (maybe like you said a --force-wipe or --init-storage option).
>From the UI standpoint it would be great to be able to choose the storage driver as well (devicemapper or overlay).
---
- name: install docker
yum: name={{ item }} state=latest
with_items:
- docker
- atomic
- name: ensure docker is stopped
service: name=docker state=stopped
- name: remove docker-pool if it exists
lvol: vg=docker_vg lv=docker-pool state=absent force=yes
- name: remove docker_vg if it exists
lvg: vg=docker_vg state=absent
- name: remove /dev/sdb1 pv
command: pvremove /dev/sdb1
ignore_errors: True
- name: delete /dev/sdb1
command: parted /dev/sdb rm 1
ignore_errors: True
- name: dd over first 10MB
command: dd if=/dev/zero of=/dev/sdb bs=1M count=10 oflag=direct
- name: rm /etc/sysconfig/docker-storage
file: path=/etc/sysconfig/docker-storage state=absent
- name: setup /etc/sysconfig/docker-storage-setup
copy: src="" dest=/etc/sysconfig/docker-storage-setup
# https://github.com/projectatomic/docker-storage-setup/issues/114
- name: patch /usr/bin/docker-storage-setup for partitions > 2TB
patch: >
src=""
dest=/usr/bin/docker-storage-setup
- name: start docker-storage-setup service
service: name=docker-storage-setup state=started
- name: start docker service
service: name=docker state=started