I'm attempting to find the equivalent of
docker run -it networkstatic/nflow-generator -t localhost -p 9995
when using the docker API (I'm using dockerode, but an answer for the HTTP api is just as good). I tried this with no luck:
docker.createContainer({
Image: 'networkstatic/nflow-generator',
Args: [ '-t', 'streamsets-dc', '-p', '9995' ]
});
How do I pass arguments without a command?