Comments (4)
Dockerode's run was made basically as an entry point to dockerode, for more complex use case you really should implement your own. (create->attach->start->wait)
But since I seeing a lot of interest on this, probably the best course of action is to accept an optional options object and merge it with the internal optsc.
Ex:
Docker.prototype.run = function(image, cmd, streamo, [options], callback)
Merging options with optsc, giving preference to options.
Don't want this to be a breaking change, so options and callback type should be validated.
If you are not up to do a PR, I can implement this later today/tomorrow :)
from dockerode.
In master now. b5758de
Yet to be published.
from dockerode.
from dockerode.
Published v1.2.10
from dockerode.
Related Issues (20)
- [SUPPORT] Getting logs from a running container
- Running image in detached mode HOT 2
- Discussions Enabled
- exec via ssh uncaughtException
- Set workdir when using docker.run
- help. how does getArchive get progress
- buildImage() issues with readable stream in v3.3.4
- No progress on build image HOT 1
- Custom http request options
- exec_running_container.js example is out of date
- async listContainers usage?
- Improve docker pull behaviour
- Cannot install Dockerode with Electron >= 20
- Dockerrode inside container HOT 1
- Breaking Change in v3.0.0 HOT 1
- how to run gvisor in dockerode HOT 1
- Cannot read stream from createContainer when doing container.exec on later point of time.
- Attaching and writing to stdin does not seem to work on latest docker engine HOT 2
- Cannot locate Dockerfile because of .dockerignore HOT 1
- `putArchive` should not return a stream ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerode.