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

14 lines
332 B
Ruby

module VagrantPlugins
module Docker
module Cap
module Debian
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