Closed guptamohit004 closed 3 years ago
The generated epub files is located within the container, and they are not accessible from outside by default. But you can map a directory into the container so you can access them.
Suppose you want to output the file to the folder /Users/gong/My Output Folder
, then execute the command like this:
docker run --rm -it -v "/Users/gong/My Output Folder/output:/root/output" gongzhang/ydkjs-epub
You don't need to change the path following colon (/root/output
) because that one is the fixed path used inside the container.
Alternatively, you can use the environment variable $PWD
to map the current working directory so that the files will be generated into current directory. But this may only work on Unix-like systems (not sure 🤔).
docker run --rm -it -v $PWD/output:/root/output ydkjs-epub
It worked, Thank you
After running the mentioned commands- Ouput is- Preparing... Generating: Get Started... Generating: Scope & Closures... Generating: this & Object Prototypes... Generating: Types & Grammar... Generating: Async & Performance... Generating: ES6 & Beyond... Done.
But I don't know where this files are located. Please help, never worked with Docker before this