mirror of https://github.com/docker/docs.git
Merge pull request #9517 from traci-morrison/engdocs-39
Add commands to export scripts
This commit is contained in:
commit
0fc249f28d
|
@ -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:
|
Docker Cluster has commands for managing the whole lifecycle of your cluster:
|
||||||
|
|
||||||
* Create and destroy clusters
|
* Create and destroy clusters
|
||||||
* Scale up or Scale down clusters
|
* Scale up or scale down clusters
|
||||||
* Upgrade clusters
|
* Upgrade clusters
|
||||||
* View the status of 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)
|
- [Get started with Docker Cluster on AWS](aws.md)
|
||||||
- [Command line reference](/engine/reference/commandline/cluster/)
|
- [Command line reference](/engine/reference/commandline/cluster/)
|
||||||
|
|
Loading…
Reference in New Issue