From 18c9ec932b6ecdcd5321375e2a9a8bef1cc66dff Mon Sep 17 00:00:00 2001 From: Traci Morrison Date: Wed, 25 Sep 2019 10:59:08 -0400 Subject: [PATCH] Add commands to export scripts --- cluster/index.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/cluster/index.md b/cluster/index.md index ec2413b796..e7f854037e 100644 --- a/cluster/index.md +++ b/cluster/index.md @@ -51,12 +51,24 @@ For more information about Cluster files, refer to the Docker Cluster has commands for managing the whole lifecycle of your cluster: * Create and destroy clusters - * Scale up or Scale down clusters + * Scale up or scale down clusters * Upgrade clusters * View the status of clusters - * Backup and Restore clusters + * Backup and restore clusters -## Cluster reference pages +## Export Docker Cluster artifacts + +You can export both Terraform and Ansible scripts to deploy certain components standalone or with custom configurations. Use the following commands to export those scripts: + +```yaml +docker run -d --name dci --entrypoint sh +docker/cluster:latest -ldocker cp dci:/cluster/terraform terraform +docker cp dci:/cluster/ansible ansible +docker stop dci +docker rm dci +``` + +## Where to go next - [Get started with Docker Cluster on AWS](aws.md) - [Command line reference](/engine/reference/commandline/cluster/)