I'm new to node js please help me to solve this. 
I want to create a text file in node js. I'm using following code segment for that.

```
    var d = new Date();
    var filename = '../upload/' + d.getFullYear() + '-' + pad((d.getMonth() + 1).toString()) + '-' + pad((d.getDate()).toString()) + '.txt';
    if (currentlogstreamfilename != filename) {
        currentlogstreamfilename = filename;
        console.log("Path: " + currentlogstreamfilename);
        currentlogstream = fs.createWriteStream(currentlogstreamfilename, { flags: 'a' });
    }

```

locally this is working perfectly. But inside the docker I'm getting.

ERROR Error: ENOENT: no such file or directory, open '../upload/2018-11-07.txt'

Any solution for this..