title: Docker Error: No such container:path.. while trying to copy to local drive
body: <p>I have tried to copy a json file from a Docker container to a local drive path on Windows machine as shown below:</p>
  <pre><code>docker cp &lt;my-container-name&gt;:/var/lib/docker/containers/123abc-json.log  C:\\log
  docker cp &lt;my-container-name&gt;:/var/lib/docker/containers/123abc-json.log  C:\\log\123abc-json.log
  
  I also tried these commands using container_id:
  
  
  docker cp &lt;my-container-ID&gt;:/var/lib/docker/containers/123abc-json.log  C:\\log
  docker cp &lt;my-container-ID&gt;:/var/lib/docker/containers/123abc-json.log  C:\\log\123abc-json.log
  </code></pre>
  <p>But I get &quot;<em>Error: No such container:path: :/var/lib/docker/containers/123abc/123abc-json.log</em>&quot; error. So, what is the problem?</p>