title: Docker doesn't create directory during build
body: <p>Experimenting with Docker for the first time. Have these steps in my Dockerfile to create a directory, but when I run the container, the directory isn't there.</p>
  
  <pre><code>FROM ubuntu
  MAINTAINER AfterWorkGuinness
  RUN apt-get update
  RUN apt-get install -y openssh-server
  RUN mkdir /root/.ssh
  RUN cd /root/.ssh
  RUN ssh-keygen -t rsa -N "" -f id_rsa
  VOLUME /root
  EXPOSE 22
  </code></pre>
  
  <p><strong>Build image:</strong></p>
  
  <pre><code>docker build -t ubuntu-ssh --no-cache .
  </code></pre>
  
  <p><strong>Testing the directory when I run the container:</strong></p>
  
  <pre><code>docker run -it -v c:/users/awg/dev/tmp/home:/root ubuntu-ssh
  
  root@39eec8fa51ad:/# cd ~/.ssh
  bash: cd: /root/.ssh: No such file or directory
  
  root@39eec8fa51ad:/# cd /root/.ssh
  bash: cd: /root/.ssh: No such file or directory
  </code></pre>