I've created my own docker image which contains two nodejs applications. Both applications read from one file and then output a different file.
How do I input the source file and get the output file on my local file system?
I've created my own docker image which contains two nodejs applications. Both applications read from one file and then output a different file.
How do I input the source file and get the output file on my local file system?
You can mount a volume when running the container using the -v flag (more info here). This will give the container access to a directory on your local system and all files written to the mapped volume will be persisted on your local volume.
docker run -v /full/path/to/source:/path/inside/container imagename