Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listServices works only with callback style #494

Closed
lifeisfoo opened this issue Nov 7, 2018 · 1 comment
Closed

listServices works only with callback style #494

lifeisfoo opened this issue Nov 7, 2018 · 1 comment

Comments

@lifeisfoo
Copy link

This works as expected:

docker.listServices({}, (err, services) => {/*ok*/});

This doesn't:

docker.listServices({})
    .then(function(services) {
        //
    }).catch(function(err) {
        //always an empty error
    });

Using dockerode 2.5.7 from npm.

@apocas
Copy link
Owner

apocas commented Nov 12, 2018

Can't replicate this.
18.09.0-ce-beta1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants