title: How to bind a shared directory from container to host in Docker
body: <p>I already installed Docker on Ubuntu successful. So, next step, I will install a new program on this container. The requirement is bind a config folder that contain some essential config files from the container to the host. I tried to use the command to map the shared directory between container and host in Docker tutorial. The command is: </p>
  
  <pre><code>docker run -d -P -v /path/to/shared_directory_host/:/path/to/shared_directory_container/ ubuntu:12.04
  </code></pre>
  
  <p>But all config files in the config folder on my container is removed because of the empty shared directory in my host. So, all that I want is bind all config files to shared directory on host at the beginning. Then, when I copy the image into another computer, I just type the above simple command and then I might be able to config the program.</p>
  
  <p>Anyone can help me to get out with this problem ! Thank you !</p>