title: How can I make a host directory mount with the container directory's contents?
body: <p>What I am trying to do is set up a docker container for ghost where I can easily modify the theme and other content.  So I am making /opt/ghost/content a volume and mounting that on the host. </p>
  
  <p>It looks like I will have to manually copy the theme into the host directory because when I mount it, it is an empty directory.  So my content directory is totally empty. I am pretty sure I am doing something wrong.</p>
  
  <p>I have tried a few different variations including using ADD with default themes folder, putting VOLUME at the end of the Dockerfile.  I keep ending up with an empty content directory.</p>
  
  <p>Does anyone have a Dockerfile doing something similar that is already working that I can look at?</p>
  
  <p>Or maybe I can use the <code>docker cp</code> command somehow to populate the volume? </p>
  
  <p>I may be missing something obvious or have made a silly mistake in my attempts to achieve this.  But the basic thing is I want to be able to upload a new set of files into the ghost themes directory using a host-mounted volume and also have the casper theme in there by default.   </p>
  
  <p>This is what I have in my Dockerfile right now:</p>
  
  <pre><code>FROM ubuntu:12.04
  MAINTAINER Jason Livesay "ithkuil@gmail.com"
  
  RUN apt-get install -y python-software-properties
  RUN add-apt-repository ppa:chris-lea/node.js
  RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" &gt; /etc/apt/sources.list
  RUN apt-get -qq update
  RUN apt-get install -y sudo curl unzip nodejs=0.10.20-1chl1~precise1
  RUN curl -L https://en.ghost.org/zip/ghost-0.3.2.zip &gt; /tmp/ghost.zip
  RUN useradd ghost
  RUN mkdir -p /opt/ghost
  WORKDIR /opt/ghost
  RUN unzip /tmp/ghost.zip
  RUN npm install --production
  
  # Volumes
  RUN mkdir /data
  
  ADD run /usr/local/bin/run
  ADD config.js /opt/ghost/config.js
  ADD content /opt/ghost/content/
  RUN chown -R ghost:ghost /opt/ghost
  
  ENV NODE_ENV production
  ENV GHOST_URL http://my-ghost-blog.com
  EXPOSE 2368
  
  CMD ["/usr/local/bin/run"]
  VOLUME ["/data", "/opt/ghost/content"]
  </code></pre>