sudo gpasswd -a vagrant docker
はなんかいいところないかな
vagrant up --provision
Vagrant.configure("2") do |config| config.vm.box = "ubuntu/impish64" config.ssh.guest_port = 2222 config.ssh.username = "vagrant" config.ssh.host = "127.0.0.1" #config.ssh.private_key_path = "./.vagrant/machines/default/virtualbox/private_key" config.vm.provider "virtualbox" do |v| v.memory = 12288 v.cpus = 4 end config.vm.provision :shell, :inline => <<-EOS sudo apt update sudo snap install docker sudo groupadd docker sudo gpasswd -a vagrant docker sudo reboot EOS end