From d62df6b2b587fce29eec769ab60efb81cf4062b5 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 11 Oct 2013 11:00:04 -0600 Subject: [PATCH] Add vagrant user to the docker group --- Vagrantfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 1296db031d..6b3ae37c62 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -39,6 +39,8 @@ Vagrant::Config.run do |config| "echo 'Installation of VBox Guest Additions is proceeding in the background.'; " \ "echo '\"vagrant reload\" can be used in about 2 minutes to activate the new guest additions.'; " end + # Add vagrant user to the docker group + pkg_cmd << "usermod -a -G docker vagrant; " # Activate new kernel pkg_cmd << "shutdown -r +1; " config.vm.provision :shell, :inline => pkg_cmd