docker-archive / dockercloud-cli

CLI for Docker Cloud
https://cloud.docker.com/
Apache License 2.0
74 stars 40 forks source link

Creating a Service inside a Stack (from the CLI) #33

Open matiasdecarli opened 8 years ago

matiasdecarli commented 8 years ago

I'm trying to create a brand new service inside a specific Stack, which is possible from the dashboard

image

Is there any way to achieve this very same thing from the CLI?

➜  docker-cloud docker-cloud service create --help
usage: docker-cloud service create [-h] [-n NAME] [--cpushares CPUSHARES]
                                   [--memory MEMORY] [--privileged]
                                   [-t TARGET_NUM_CONTAINERS] [-r RUN_COMMAND]
                                   [--entrypoint ENTRYPOINT] [-p PUBLISH]
                                   [--expose EXPOSE] [-e ENV]
                                   [--env-file ENV_FILE] [--tag TAG]
                                   [--link-service LINK_SERVICE]
                                   [--autodestroy {OFF,ON_SUCCESS,ALWAYS}]
                                   [--autoredeploy]
                                   [--autorestart {OFF,ON_FAILURE,ALWAYS}]
                                   [--role ROLE] [--sequential] [-v VOLUME]
                                   [--volumes-from VOLUMES_FROM]
                                   [--deployment-strategy {EMPTIEST_NODE,HIGH_AVAILABILITY,EVERY_NODE}]
                                   [--sync] [--net NET] [--pid PID]
                                   image