mirror of https://github.com/docker/docs.git
Add commands to export scripts
This commit is contained in:
parent
9a28b67c84
commit
18c9ec932b
|
@ -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/)
|
||||
|
|
Loading…
Reference in New Issue