node.js - Passing command args to docker api -


i'm attempting find equivalent of

docker run -it networkstatic/nflow-generator -t localhost -p 9995 

when using docker api (i'm using dockerode, answer http api good). tried no luck:

docker.createcontainer({   image: 'networkstatic/nflow-generator',   args: [ '-t', 'streamsets-dc', '-p', '9995' ] }); 

how pass arguments without command?

since networkstatic/nflow-generator dockerfile defines entrypoint /go/bin/nflow-generator, should able pass these arguments running container commands this:

 docker.createcontainer({    image: 'networkstatic/nflow-generator',    cmd: [ '-t', 'streamsets-dc', '-p', '9995' ]  }); 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -