From 4ca2931ae906ee22ef1a6bd70792a4c8fd519bee Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Wed, 29 Jun 2016 16:40:34 +0200 Subject: [PATCH] Add new virtual drive for /var/lib/docker Otherwise 10G is not enough to host all the CCP images and it leads to deployment failures. --- Vagrantfile | 1 + vagrant-scripts/bootstrap-node.sh | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 85e700cb3..2960b0de4 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -67,6 +67,7 @@ Vagrant.configure("2") do |config| domain.cpu_mode = "host-passthrough" domain.volume_cache = "unsafe" domain.disk_bus = "virtio" + domain.storage :file, :type => 'qcow2', :bus => 'virtio', :size => '20G', :device => 'vdb' end # Networks and interfaces diff --git a/vagrant-scripts/bootstrap-node.sh b/vagrant-scripts/bootstrap-node.sh index b1f8f2f07..79bcf9174 100755 --- a/vagrant-scripts/bootstrap-node.sh +++ b/vagrant-scripts/bootstrap-node.sh @@ -15,3 +15,9 @@ sudo mv ~vagrant/ssh /root/.ssh sudo rm -f /root/.ssh/id_rsa* sudo chown -R root: /root/.ssh +# Setup new drive for docker +sudo mkfs.ext4 /dev/vdb +sudo mkdir -p /var/lib/docker +sudo echo '/dev/vdb /var/lib/docker ext4 defaults,noatime,nodiratime 0 0' >> /etc/fstab +sudo mount -a +