Dockerode: Give an example of how to create services

Created on 9 Sep 2017  路  4Comments  路  Source: apocas/dockerode

Hi,
I want to create a service but I don't know how to use the dockerode's API. Please give an example.

question

All 4 comments

hi @mhemrg,
maybe you can elaborate what you mean by "creating a service"?
Do you want to run a container image?
Maybe you know the related docker command(s)?

The related command: docker service create --name redis --label my_label=value redis:latest

@apocas createService has the definition
createService(options: {}, callback: Callback<any>): void;, if options was of a new type ServiceOpts interface, it would be really helpful to see it in IntelliSense

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stanleygu picture stanleygu  路  4Comments

yamii picture yamii  路  5Comments

hyperlink picture hyperlink  路  7Comments

IniZio picture IniZio  路  3Comments

knight42 picture knight42  路  6Comments