title: Copy entire directory from container to host
body: <p>I'm trying to copy an entire directory from my docker image to my local machine.</p>
  
  <p>The image is a keycloak image, and I'd like to copy the themes folder so I can work on a custom theme.</p>
  
  <p>I am running the following command -</p>
  
  <pre><code>docker cp 143v73628670f:keycloak/themes ~/Development/Code/Git/keycloak-recognition-login-branding
  </code></pre>
  
  <p>However I am getting the following response -</p>
  
  <pre><code>Error response from daemon: Could not find the file keycloak/themes in container 143v73628670f
  </code></pre>
  
  <p>When I connect to my container using -</p>
  
  <pre><code> docker exec -t -i 143v73628670f /bin/bash
  </code></pre>
  
  <p>I can navigate to the themes by using -</p>
  
  <pre><code>cd keycloak/themes/
  </code></pre>
  
  <p>I can see it is located there and the files are as expected in the terminal.</p>
  
  <p>I'm running the instance locally on a Mac.</p>
  
  <p>How do I copy that entire themes folder to my local machine? What am I doing wrong please?</p>