From cfc3e9e3981f0d37511641cfc5f107a20734c47a Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 12 Nov 2018 15:32:14 -0800 Subject: [PATCH] Reset communicator after updating user groups --- .../docker/cap/linux/docker_configure_vagrant_user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/provisioners/docker/cap/linux/docker_configure_vagrant_user.rb b/plugins/provisioners/docker/cap/linux/docker_configure_vagrant_user.rb index 5283a9ef1..a85d8248f 100644 --- a/plugins/provisioners/docker/cap/linux/docker_configure_vagrant_user.rb +++ b/plugins/provisioners/docker/cap/linux/docker_configure_vagrant_user.rb @@ -9,6 +9,7 @@ module VagrantPlugins machine.communicate.tap do |comm| if comm.test("getent group docker") && !comm.test("id -Gn | grep docker") comm.sudo("usermod -a -G docker #{ssh_info[:username]}") + comm.reset! end end end