Skip to content

Instantly share code, notes, and snippets.

@kkumtree
Created June 19, 2023 04:19
Show Gist options
  • Save kkumtree/317c450d38319cdd92f9213602c4465d to your computer and use it in GitHub Desktop.
Save kkumtree/317c450d38319cdd92f9213602c4465d to your computer and use it in GitHub Desktop.
Vagrantfle_docker_ubuntu_basic
Vagrant.configure("2") do |config|
config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.provider "docker" do |d|
d.build_dir = "."
end
# ubuntu.vm.provision "shell", inline: <<-SCRIPT
# sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
# sudo useradd kkumtree -m -s /bin/bash
# sudo usermod -a -G sudo kkumtree
# echo kkumtree:kkumtree | sudo chpasswd
# sudo systemctl restart sshd
# SCRIPT
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment