• List containers for a stack
$ cx containers list -s "stack name" -e staging|production
(staging|production)
SERVICE  SERVER  NAME                           CONTAINER ID      CONTAINER_NET_IP  DOCKER_IP   STARTED AT    HEALTH
web      Merlin  web.careful-tough-wildebeest   9b70386d62e26e7…  25.0.0.201        172.17.0.5  Dec 11 15:55  Unverified
web      Merlin  web.determined-romantic-heron  41cda7a47ae6041…  25.0.0.47         172.17.0.6  Dec 11 15:55  Unverified
  • Get shell on target container
$ cx containers exec -s "Stack name" -e staging|production containerId9b70386d62e26e7 /bin/bash
Running exec on container...
(staging|production)
Note: you may need to push <enter> to view output after the connection completes..
root@9b70386d62e2:/usr/src/app#
  • Redeploy
$ cx redeploy -s "Stack name" -e staging|production
(staging|production)
Stack starting redeployment

Documentation:

  • http://help.cloud66.com/category/toolbelt


Published

12 December 2016

Category

memo

Tags