You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I'm using dockerode to manage my docker containers and its great so far, but the run command doesn't seem to be friendly to running containers in a detached mode. The implementation now always tries to attach to a container and then wait for it to be done before running the callback. I'd like to just call run and get a confirmation it is running. Would like to contribute, was wondering thoughts on a preferred way. My inclination is to add a new method, runDetached a la:
Thoughts? I'd be happy to submit a PR and include some tests, but don't want to go through the effort if you'd rather augment the run method. If that's the case, I'd rather not use the options object but don't have a better suggestion.
Thanks for the great lib!
Mike
The text was updated successfully, but these errors were encountered:
I highly advise you to implement your own run function on your side.
Dockerode's run is like Docker's run, it is impossible to support all use cases. :)
Each person as it's necessities, run can only support the most used ones. Can't implement N run functions and/or N options in each. :)
I would argue that running detached is a highly used use case. It is the first section of the run reference after all (whether to run detached or not).
Hi all, I'm using dockerode to manage my docker containers and its great so far, but the
run
command doesn't seem to be friendly to running containers in a detached mode. The implementation now always tries to attach to a container and then wait for it to be done before running the callback. I'd like to just call run and get a confirmation it is running. Would like to contribute, was wondering thoughts on a preferred way. My inclination is to add a new method,runDetached
a la:Thoughts? I'd be happy to submit a PR and include some tests, but don't want to go through the effort if you'd rather augment the
run
method. If that's the case, I'd rather not use the options object but don't have a better suggestion.Thanks for the great lib!
Mike
The text was updated successfully, but these errors were encountered: