docker-archive / dockercloud-cli

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

Add a parameter during service creation to specify the node cluster #12

Closed arun-gupta closed 8 years ago

arun-gupta commented 8 years ago

docker-cloud service create need to include a new parameter that will allow to specify the node cluster during service creation.

The current usage is:

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
fermayo commented 8 years ago

Container placement is done using tags, not directly specifying node clusters: https://docs.docker.com/docker-cloud/feature-reference/deploy-tags/