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 command
s this:
docker.createcontainer({ image: 'networkstatic/nflow-generator', cmd: [ '-t', 'streamsets-dc', '-p', '9995' ] });
Comments
Post a Comment