title: Extract and change code from image using Docker Toolbox
body: <p>I successfully retrieved an image called <code>k8s.gcr.io/guestbook:v3</code> from a public repository and ran it as a container on a local Windows devbox using <code>Docker Toolbox.</code>  (I have to use Docker Toolbox because the devbox in question does not meet the pre-requisites for installing <code>Docker for Windows</code>)  </p>
  
  <blockquote>
    <p><strong>What specific commands do I need to type in order to locate and open the files that were used to create the image?</strong>  </p>
  </blockquote>
  
  <p>I want to examine the code for the app that is inside the container, then make a few changes here and there, then run the revised image as a container to see the revised code in action.  But I cannot very well do that if I cannot first access the code.  </p>
  
  <p><hr><strong>Downloading The Image and Running The Container</strong><hr>  </p>
  
  <p>The following are the steps I took to retrieve and validate the container/image:  </p>
  
  <pre><code>User@pc MINGW64 /c/Program Files/Docker Toolbox  
  $ docker run -d -p 3000:3000 k8s.gcr.io/guestbook:v3  
  Unable to find image 'k8s.gcr.io/guestbook:v3' locally
  v3: Pulling from guestbook  
  a3ed95caeb02: Pull complete  
  300273678d06: Pull complete  
  de2a362ef050: Pull complete  
  06d5067149bd: Pull complete  
  7a38a4e8f983: Pull complete  
  10af2c65b7d4: Pull complete  
  Digest: sha256:8f333d5b72677d216b4eb046d655aef7be9f1380e06ca1c63dfa9564034e7e26  
  Status: Downloaded newer image for k8s.gcr.io/guestbook:v3
  953785bda17b0396fa3f3812a9b8ad8e2038120336895dfe1d57343adb917cce
  
  User@pc MINGW64 /c/Program Files/Docker Toolbox
  $ curl $(docker-machine ip default):3000
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta content="width=device-width" name="viewport"&gt;
      &lt;link href="style.css" rel="stylesheet"&gt;
      &lt;title&gt;Guestbook&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div id="header"&gt;
        &lt;h1&gt;Guestbook&lt;/h1&gt;
      &lt;/div&gt;
  
      &lt;div id="guestbook-entries"&gt;
        &lt;p&gt;Waiting for database connection...&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div&gt;
        &lt;form id="guestbook-form"&gt;
          &lt;input autocomplete="off" id="guestbook-entry-content" type="text"&gt;
          &lt;a href="#" id="guestbook-submit"&gt;Submit&lt;/a&gt;
        &lt;/form&gt;
      &lt;/div&gt;
  
      &lt;div&gt;
        &lt;p&gt;&lt;h2 id="guestbook-host-address"&gt;&lt;/h2&gt;&lt;/p&gt;
        &lt;p&gt;&lt;a href="env"&gt;/env&lt;/a&gt;
        &lt;a href="info"&gt;/info&lt;/a&gt;&lt;/p&gt;
      &lt;/div&gt;
      &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="script.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  
  User@pc MINGW64 /c/Program Files/Docker Toolbox
  $
  </code></pre>