Dockerode Equivalent of Command

154 Views Asked by At

I'm looking to use dockerode to run a function in nodejs that is the equivalent to the following command line command:

docker run --rm -v ${filename}:/docker.py image-name

I am unsure about how to do this (especially how to use flags like --rm and -v).

Thank you!

0

There are 0 best solutions below