title: Editing files using editors in Docker with Vagrant (on Mac)
body: <p>What is the best way for me to edit a file using sublime or other editors in Docker with Vagrant? </p>
  
  <p>I'm working on Mac OSX environment, and I've followed the steps on Docker's official document.</p>
  
  <p><a href="http://docs.docker.io/en/latest/installation/vagrant/" rel="noreferrer">http://docs.docker.io/en/latest/installation/vagrant/</a></p>
  
  <pre><code>git clone https://github.com/dotcloud/docker.git
  cd docker
  vagrant up
  </code></pre>
  
  <p>It seems like I've to use docker inside vagrant environment (on Mac Docker installation). So this makes me unable to edit my files with my sublime editor.</p>
  
  <p>so how could I get to edit my files with original <code>bash</code> (outside Vagrant and Docker environment), or did I have to set up all the environment again on vagrant to achieve it?</p>
  
  <hr>
  
  <p>And I've looked up Vagrant official document</p>
  
  <p><a href="http://docs.vagrantup.com/v2/getting-started/up.html" rel="noreferrer">http://docs.vagrantup.com/v2/getting-started/up.html</a></p>
  
  <p>after I've ssh to vagrant environment <code>vagrant ssh</code>, go to <code>cd /vagrant/</code> and create a file.</p>
  
  <p>It should be in root of the docker repository where I've started up my Vagrant, isn't it? But I can't find it...</p>