title: docker-machine with rsync
body: <p>I want to use <code>rsync</code> within order to synchronize a folder. <code>docker-machine</code> allows <code>rsync</code> with the <code>-d option</code>.</p>
  
  <pre><code>docker-machine scp -r -d . machine-name:~
  </code></pre>
  
  <p>This command seems to be working, however, I would like to extend the use of <code>rsync</code> to:</p>
  
  <pre><code>rsync -rvz --delete --exclude-from=.rsyncignore -e 'docker-machine ssh machine-name' . :
  </code></pre>
  
  <p>I also tried the following command:</p>
  
  <pre><code>sshpass -p "tcuser" rsync -rvz --delete --exclude-from=.rsyncignore  . docker@`docker-machine ip machine-name`:
  </code></pre>
  
  <p>Both command synchronize everything a first time, however, once everything is synced, I cannot access the VM anymore. If I try to access the VM through <code>docker-machine ssh machine-name</code> i receive the response<code>exit status 255</code>. What is happening?</p>