Created
June 19, 2023 04:19
-
-
Save kkumtree/317c450d38319cdd92f9213602c4465d to your computer and use it in GitHub Desktop.
Vagrantfle_docker_ubuntu_basic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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