From 1d98f347beab90687cb240db637154859a0d97da Mon Sep 17 00:00:00 2001 From: mpana Date: Mon, 5 Mar 2018 17:32:01 +0200 Subject: [PATCH] start stop page updates --- en/docs/startstop.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 en/docs/startstop.md diff --git a/en/docs/startstop.md b/en/docs/startstop.md new file mode 100644 index 0000000..c0df6e6 --- /dev/null +++ b/en/docs/startstop.md @@ -0,0 +1,34 @@ +# Start and stopping instances +Before you can use the Spearhead Cloud you must create and account and provide your billing details. + +## Using the Spearhead Cloud Portal +TBD: shortly + +## Using the Spearhead CLI Tool + +First install the [Spearhead CLI Tool](https://docs.spearhead.cloud/spearhead-cli/). + +Now you can use the ```spearhead``` command to create your infrastructure container by running ```spearhead instance create```. Here is an example of launching a debian container: + +```spearhead create -n webdeb -w debian-8 s1-general-1-2-100``` + +The command parameters define: + +1. -n (--name) provides the name of the container. In our case it is "webdeb". +2. -w "waits" for the container to be created before returning the prompt. +3. We are using debian-8 as our image1. +4. We are using s1-general-1-2-100 as our package2. + + +1to view available images use ```spearhead images``` + +2to view available packages use ```spearhead packages``` + +## Deleting your instances +Once you are finished using your instances you can delete them using the ```speahread``` CLI tool or using the Spearhead Cloud Portal. + +### Delete using the spearhead cli tool +Using the ```spearhead``` cli tool is the most convenient way to quickly delete your instances (including Docker containers). By issuing ```spearhead instance delete ``` you can remove any instance including Docker containers. + +### Delete using the Spearhead Cloud Portal +To delete an instance using the Spearhead Cloud Portal