Docker, storage isolation < 1.8
How to isolate Docker containers and stuff…
[root@localhost ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/md0p1 dockers lvm2 a-- 37.25g 37.25g
/dev/md0p2 mysql lvm2 a-- 37.25g 764.00m
/dev/sda3 centos lvm2 a-- 12.93g 4.00m
[root@localhost ~]# echo VG=dockers > "/etc/sysconfig/docker-storage-setup"
[root@localhost ~]# docker-storage-setup
Rounding up size to full physical extent 40.00 MiB
Wiping xfs signature on /dev/dockers/docker-poolmeta.
Logical volume "docker-poolmeta" created.
Logical volume "docker-pool" created.
WARNING: Converting logical volume dockers/docker-pool and dockers/docker-poolmeta to pool's data and metadata volumes.
THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)
Converted dockers/docker-pool to thin pool.
Logical volume "docker-pool" changed.
[root@localhost ~]# rm /var/lib/docker -rf
[root@localhost ~]# docker start
No comments yet.