vagrant - Gakgu/Gakgu.github.io GitHub Wiki
κ°μ
κ°μ λ¨Έμ μ μμ±, κ΄λ¦¬λ₯Ό 보쑰νλ νλ‘κ·Έλ¨μ΄λ€.
κ°μ λ¨Έμ μμ±
https://www.vagrantup.com μμ ν΄λΉλλ λ°μ€λ₯Ό κ²μνκ³ μ€μΉνλ€.
$ vagrant init jhcook/macos-sierra
$ vagrant up
κ°μ λ¨Έμ κ΄λ¦¬
μ€ν, μ’ λ£
vagrant up/halt
ssh μ μ
-
λͺ λ Ήμ΄
vagrant ssh
-
κΈ°λ³Έκ°
-
default Id :
vagrant -
default Passward :
vagrant -
default Port :
2222
ν¬νΈλ Vagrantfile
μ μμ νμ¬ λ³κ²½ν μ μλ€.
config.vm.network :forwarded_port, host: 2222, guest: 22
μ€λ΅μ·
vagrant snapshot list/save/restore/push/pop