title: How to view files created within a Zeit Docker/Node container
body: <p>According to <a href="https://zeit.co/docs/deployment-types/docker#file-system-specifications" rel="nofollow noreferrer">the Zeit docs</a></p>
  
  <blockquote>
    <p>There are no limitations inside Docker deployments when it comes to the file system. It's always writable and readable.</p>
  </blockquote>
  
  <p>And indeed my little test seems to write files successfully:</p>
  
  <pre><code>app.get('/write', (req, res) =&gt; {
    console.log({
      __dirname,
      cwd: process.cwd()
    })
    const text = `some bit of text`
    const dirpath = path.resolve(process.cwd(), 'uploads')
    const fullpath = path.resolve(dirpath, `file-${+new Date()}.txt`)
    mkdirp(dirpath, function(error) {
      if (error) {
        console.error(error)
      } else {
        fs.writeFile(fullpath, text, error =&gt; {
          if (error) {
            console.error('error writing', error)
          } else {
            console.log(`file written at ${fullpath}`)
            fs.readdir(dirpath, function(err, items) {
              for (var i = 0; i &lt; items.length; i++) {
                console.log(items[i])
              }
            })
            res.send('File written')
          }
        })
      }
    })
  })
  </code></pre>
  
  <p>After several refreshes of the <code>/write</code> route, this will print the list of files. However within the Zeit "source" panel, I only see the files copied by my Dockerfile:</p>
  
  <p><a href="https://i.stack.imgur.com/F4gU3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F4gU3.png" alt="output of source"></a></p>
  
  <p>For reference, my <a href="https://nodejs.org/en/docs/guides/nodejs-docker-webapp/" rel="nofollow noreferrer">Dockerfile</a>:</p>
  
  <pre><code>FROM node:carbon
  
  WORKDIR /usr/src/app
  
  COPY package*.json ./
  
  RUN npm install
  
  COPY . .
  
  EXPOSE 3000
  
  CMD [ "npm", "start" ]
  #      ^^^^^^^^^^^^ "start": "node ./build/server"
  </code></pre>
  
  <h3>Within the Zeit/Now environment, is there any way to view/intereact with these files, via ssh or some other method?</h3>