vagrant.rst
changeset 2372 a6ba7fce5ed9
parent 2309 b7cd886c07b5
child 2452 f2450d4f1adc
equal deleted inserted replaced
2371:026d8d922e7c 2372:a6ba7fce5ed9
   206 
   206 
   207   vagrant provision --provision-with user_ssh
   207   vagrant provision --provision-with user_ssh
   208   vagrant provision --provision-with root_ssh
   208   vagrant provision --provision-with root_ssh
   209   vagrant provision --provision-with user_ssh,root_ssh
   209   vagrant provision --provision-with user_ssh,root_ssh
   210 
   210 
       
   211 Copying files
       
   212 =============
       
   213 
       
   214 To copy files recursively to running box::
       
   215 
       
   216   vagrant upload $SRC $DST
       
   217   vagrant upload $SRC $DST  $BOXID
       
   218 
       
   219 To copy to ``/home/vagrant``::
       
   220 
       
   221   vagrant upload $SRC .
       
   222   vagrant upload $SRC .  $BOXID
       
   223 
       
   224 To copy to ``/home/vagrant/$DIR``::
       
   225 
       
   226   vagrant upload $SRC $DIR
       
   227   vagrant upload $SRC $DIR  $BOXID
       
   228 
       
   229 https://www.vagrantup.com/docs/cli/upload.html
       
   230   Uploads files and directories from the host to the guest machine.
       
   231 
       
   232 There is 3rd patry option with::
       
   233 
       
   234   vagrant plugin install vagrant-scp
       
   235   vagrant scp $SRC :$DST
       
   236   vagrant scp $SRC $BOXID:$DST
       
   237 
   211 Working with Alpine Linux
   238 Working with Alpine Linux
   212 =========================
   239 =========================
   213 
   240 
   214 Install plugin::
   241 Install plugin::
   215 
   242