title: Problems in running marble example offline
body: <p>I'm trying to run this example on my computer without the help of the Blockchain implementation from Bluemix.</p>
  
  <p><a href="https://github.com/IBM-Blockchain/marbles/blob/master/tutorial_part1.md#confignetwork" rel="nofollow">https://github.com/IBM-Blockchain/marbles/blob/master/tutorial_part1.md#confignetwork</a></p>
  
  <p>I have downloaded the hyperledger/fabric-peer docker images and set up the corresponding docker-compose.yml file with the correct CORE_PEER_ID and CORE_VM_ENDPOINT.</p>
  
  <pre><code>vp0:
    image: hyperledger/fabric-peer
    environment:
      - CORE_PEER_ID=vp0
      - CORE_PEER_ADDRESSAUTODETECT=true
      - CORE_VM_ENDPOINT=172.17.0.1:2375
      - CORE_LOGGING_LEVEL=DEBUG
    command: peer node start
  </code></pre>
  
  <p>Now, I try to run the marbles node app with the correct api_host and api_port. </p>
  
  <pre><code>var peers = [{
          "api_host": "172.17.0.2", //hostname or ip of peer
          "api_port": 7051, //http port
          "id": "vp0" //unique id of peer
      }];
  </code></pre>
  
  <p>The fabric peer seems to ignore the connection request with the node app and responds with:</p>
  
  <pre><code>vp0_1 | 2016/10/13 20:15:03 transport: http2Server.HandleStreams received bogus greeting from client: "POST /registrar HTTP/1.1"
  </code></pre>
  
  <p>I try also to send a GET requests with postman:</p>
  
  <pre><code>http://172.17.0.2:7051/chain
  </code></pre>
  
  <p>The response gives </p>
  
  <pre><code>vp0_1 | 2016/10/13 20:13:23 transport: http2Server.HandleStreams received bogus greeting from client: "GET /chain HTTP/1.1\r\nHos"
  </code></pre>
  
  <p>Here is the whole output of my GET request</p>
  
  <pre><code>Starting capstone_vp0_1
  Attaching to capstone_vp0_1
  vp0_1 | 20:11:36.771 [logging] LoggingInit -&gt; DEBU 001 Setting default logging level to DEBUG for command 'node'
  vp0_1 | 20:11:36.771 [peer] func1 -&gt; INFO 002 Auto detected peer address: 172.17.0.2:7051
  vp0_1 | 20:11:36.771 [peer] func1 -&gt; INFO 003 Auto detected peer address: 172.17.0.2:7051
  vp0_1 | 20:11:36.772 [eventhub_producer] AddEventType -&gt; DEBU 004 registering BLOCK
  vp0_1 | 20:11:36.772 [eventhub_producer] AddEventType -&gt; DEBU 005 registering CHAINCODE
  vp0_1 | 20:11:36.772 [eventhub_producer] AddEventType -&gt; DEBU 006 registering REJECTION
  vp0_1 | 20:11:36.772 [eventhub_producer] AddEventType -&gt; DEBU 007 registering REGISTER
  vp0_1 | 20:11:36.772 [nodeCmd] serve -&gt; INFO 008 Security enabled status: false
  vp0_1 | 20:11:36.772 [nodeCmd] serve -&gt; INFO 009 Privacy enabled status: false
  vp0_1 | 20:11:36.772 [eventhub_producer] start -&gt; INFO 00a event processor started
  vp0_1 | 20:11:36.772 [db] open -&gt; DEBU 00b Is db path [/var/hyperledger/production/db] empty [false]
  vp0_1 | 20:11:36.985 [chaincode] NewChaincodeSupport -&gt; INFO 00c Chaincode support using peerAddress: 172.17.0.2:7051
  vp0_1 | 20:11:36.986 [chaincode] NewChaincodeSupport -&gt; DEBU 00d Turn off keepalive(value 0)
  vp0_1 | 20:11:36.986 [sysccapi] RegisterSysCC -&gt; INFO 00e system chaincode (noop,github.com/hyperledger/fabric/bddtests/syschaincode/noop) disabled
  vp0_1 | 20:11:36.986 [nodeCmd] serve -&gt; DEBU 00f Running as validating peer - making genesis block if needed
  vp0_1 | 20:11:36.986 [state] loadConfig -&gt; INFO 010 Loading configurations...
  vp0_1 | 20:11:36.986 [state] loadConfig -&gt; INFO 011 Configurations loaded. stateImplName=[buckettree], stateImplConfigs=map[numBuckets:%!s(int=1000003) maxGroupingAtEachLevel:%!s(int=5) bucketCacheSize:%!s(int=100)], deltaHistorySize=[500]
  vp0_1 | 20:11:36.986 [state] NewState -&gt; INFO 012 Initializing state implementation [buckettree]
  vp0_1 | 20:11:36.986 [buckettree] initConfig -&gt; INFO 013 configs passed during initialization = map[string]interface {}{"numBuckets":1000003, "maxGroupingAtEachLevel":5, "bucketCacheSize":100}
  vp0_1 | 20:11:36.986 [buckettree] initConfig -&gt; INFO 014 Initializing bucket tree state implemetation with configurations &amp;{maxGroupingAtEachLevel:5 lowestLevel:9 levelToNumBucketsMap:map[2:13 3:65 9:1000003 1:3 8:200001 6:8001 4:321 7:40001 5:1601 0:1] hashFunc:0xab4560}
  vp0_1 | 20:11:36.986 [buckettree] newBucketCache -&gt; INFO 015 Constructing bucket-cache with max bucket cache size = [100] MBs
  vp0_1 | 20:11:36.986 [buckettree] loadAllBucketNodesFromDB -&gt; INFO 016 Loaded buckets data in cache. Total buckets in DB = [0]. Total cache size:=0
  vp0_1 | 20:11:36.987 [nodeCmd] serve -&gt; DEBU 017 Running as validating peer - installing consensus 
  vp0_1 | 20:11:36.987 [peer] initDiscovery -&gt; DEBU 018 Retrieved discovery list from disk: []
  vp0_1 | 20:11:36.987 [consensus/controller] NewConsenter -&gt; INFO 019 Creating default consensus plugin (noops)
  vp0_1 | 20:11:36.988 [consensus/noops] newNoops -&gt; DEBU 01a Creating a NOOPS object
  vp0_1 | 20:11:36.988 [consensus/noops] newNoops -&gt; INFO 01b NOOPS consensus type = *noops.Noops
  vp0_1 | 20:11:36.988 [consensus/noops] newNoops -&gt; INFO 01c NOOPS block size = 500
  vp0_1 | 20:11:36.988 [consensus/noops] newNoops -&gt; INFO 01d NOOPS block wait = 1s
  vp0_1 | 20:11:36.988 [peer] chatWithSomePeers -&gt; DEBU 01e Starting up the first peer of a new network
  vp0_1 | 20:11:36.988 [consensus/statetransfer] verifyAndRecoverBlockchain -&gt; DEBU 01f Validating existing blockchain, highest validated block is 0, valid through 0
  vp0_1 | 20:11:36.988 [consensus/statetransfer] blockThread -&gt; INFO 021 Validated blockchain to the genesis block
  vp0_1 | 20:11:36.988 [consensus/handler] 1 -&gt; DEBU 020 Starting up message thread for consenter
  vp0_1 | 20:11:36.988 [rest] StartOpenchainRESTServer -&gt; INFO 022 Initializing the REST service on 0.0.0.0:7050, TLS is disabled.
  vp0_1 | 20:11:36.988 [nodeCmd] serve -&gt; INFO 023 Starting peer with ID=name:"vp0" , network ID=dev, address=172.17.0.2:7051, rootnodes=, validator=true
  vp0_1 | 20:11:36.988 [peer] ensureConnected -&gt; DEBU 024 Starting Peer reconnect service (touch service), with period = 6s
  vp0_1 | 20:11:42.989 [peer] ensureConnected -&gt; DEBU 025 Touch service indicates no dropped connections
  vp0_1 | 20:11:42.989 [peer] ensureConnected -&gt; DEBU 026 Connected to: []
  vp0_1 | 20:11:42.989 [peer] ensureConnected -&gt; DEBU 027 Discovery knows about: []
  </code></pre>