Update Docker Installation Guide

Docker Installation guide needs to be updated with Project ID
as per tools/docker_run.sh. Also some adjustments are made which would
be helpful for users.

Change-Id: Ief1a87d06e37f58f8aae0423125f2a1794918d1c
This commit is contained in:
Syed Ahsan Shamim Zaidi 2016-11-01 20:16:06 +00:00
parent bfd2dff831
commit 8e87d5b797
1 changed files with 3 additions and 4 deletions

View File

@ -56,7 +56,7 @@ Run the Craton Docker Image
* And finally, run the docker image::
$ sudo docker run -t --name craton-api -p 127.0.0.1:8080:8080 -d craton-api:latest
$ sudo docker run -t --name craton-api -d craton-api:latest
-------------------
@ -65,7 +65,7 @@ Calling into Craton
* To generate a sample data set, use the following command::
$ python tools/generate_fake_data.py --url http://127.0.0.1:8080/v1 --user demo --project b9f10eca66ac4c279c139d01e65f96b4 --key demo
$ python tools/generate_fake_data.py --url http://{Container_IP}:8080/v1 --user demo --project b9f10eca66ac4c279c139d01e65f96b4 --key demo
* Now, let's run an API call against Craton running in the container. First, we need to enumerate the running Docker images::
@ -77,8 +77,7 @@ Calling into Craton
* Now that you know the IP address, you can run a curl command like the one below to query Craton::
$ curl -i "http://172.17.0.11:8080/v1/hosts?region_id=1" -H "Content-Type: application/json" -H "X-Auth-Token: demo" -H "X-Auth-User: demo" -H "X-Auth-Project: 1"
$ curl -i "http://{Container_IP}:8080/v1/hosts?region_id=1" -H "Content-Type: application/json" -H "X-Auth-Token: demo" -H "X-Auth-User: demo" -H "X-Auth-Project: b9f10eca66ac4c279c139d01e65f96b4"
-------------------