vagrant/plugins/provisioners/docker/cap/linux/docker_configure_vagrant_us...

14 lines
331 B
Ruby

module VagrantPlugins
module Docker
module Cap
module Linux
module DockerConfigureVagrantUser
def self.docker_configure_vagrant_user(machine)
machine.communicate.sudo("usermod -a -G docker #{machine.config.ssh.username || "vagrant"}")
end
end
end
end
end
end