{"id":1010,"date":"2015-08-28T11:09:14","date_gmt":"2015-08-28T11:09:14","guid":{"rendered":"http:\/\/10sa.com\/sql_stories\/?p=1010"},"modified":"2015-09-04T11:52:50","modified_gmt":"2015-09-04T11:52:50","slug":"docker-storage-isolation","status":"publish","type":"post","link":"http:\/\/10sa.com\/sql_stories\/?p=1010","title":{"rendered":"Docker, storage isolation < 1.8"},"content":{"rendered":"<p>How to isolate Docker containers and stuff&#8230;<\/p>\n<pre lang=\"bash\">\r\n[root@localhost ~]# pvs\r\n  PV         VG      Fmt  Attr PSize  PFree  \r\n  \/dev\/md0p1 dockers lvm2 a--  37.25g  37.25g\r\n  \/dev\/md0p2 mysql   lvm2 a--  37.25g 764.00m\r\n  \/dev\/sda3  centos  lvm2 a--  12.93g   4.00m\r\n\r\n[root@localhost ~]# echo VG=dockers > \"\/etc\/sysconfig\/docker-storage-setup\"\r\n[root@localhost ~]# docker-storage-setup \r\n  Rounding up size to full physical extent 40.00 MiB\r\n  Wiping xfs signature on \/dev\/dockers\/docker-poolmeta.\r\n  Logical volume \"docker-poolmeta\" created.\r\n  Logical volume \"docker-pool\" created.\r\n  WARNING: Converting logical volume dockers\/docker-pool and dockers\/docker-poolmeta to pool's data and metadata volumes.\r\n  THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)\r\n  Converted dockers\/docker-pool to thin pool.\r\n  Logical volume \"docker-pool\" changed.\r\n[root@localhost ~]# rm \/var\/lib\/docker -rf\r\n[root@localhost ~]# docker start\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to isolate Docker containers and stuff&#8230; [root@localhost ~]# pvs PV VG Fmt Attr PSize PFree \/dev\/md0p1 dockers lvm2 a&#8211; 37.25g 37.25g \/dev\/md0p2 mysql lvm2 a&#8211; 37.25g 764.00m \/dev\/sda3 centos lvm2 a&#8211; 12.93g 4.00m [root@localhost ~]# echo VG=dockers > &#8220;\/etc\/sysconfig\/docker-storage-setup&#8221; [root@localhost ~]# docker-storage-setup Rounding up size to full physical extent 40.00 MiB Wiping xfs signature [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/1010"}],"collection":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1010"}],"version-history":[{"count":5,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/1010\/revisions"}],"predecessor-version":[{"id":1024,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=\/wp\/v2\/posts\/1010\/revisions\/1024"}],"wp:attachment":[{"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1010"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10sa.com\/sql_stories\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}