<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged docker</title>
<link>https://www.multichain.com/qa/tag/docker</link>
<description>Powered by Question2Answer</description>
<item>
<title>Docker issue connecting to genesis node</title>
<link>https://www.multichain.com/qa/91737/docker-issue-connecting-to-genesis-node</link>
<description>&lt;p&gt;I have &quot;&lt;span style=&quot;color:#569cd6&quot;&gt;rpcallowip&lt;/span&gt;=0.0.0.0/0&quot; in my multichain.conf&lt;br&gt;&lt;br&gt;docker images are able to ping and netcat displays the necessary port on genesis image as open..&lt;br&gt;&lt;br&gt;Any idea on why they wont talk?&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://imgur.com/a/kdDiDPG&quot;&gt;&lt;a href=&quot;https://imgur.com/a/kdDiDPG&quot; rel=&quot;nofollow&quot;&gt;https://imgur.com/a/kdDiDPG&lt;/a&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/91737/docker-issue-connecting-to-genesis-node</guid>
<pubDate>Wed, 05 Mar 2025 23:08:00 +0000</pubDate>
</item>
<item>
<title>Multichain in Kubernetes</title>
<link>https://www.multichain.com/qa/12861/multichain-in-kubernetes</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have deployed a master node in Kubernetes and I can join external (to the K8s cluster) client nodes, for instance, using Windows.&lt;/p&gt;&lt;p&gt;However, when I try to issue commands from the clients, and even from the master, I start to see lots of warning logs about massive peers and eventually the commands are not executed.&lt;/p&gt;&lt;p&gt;I presume everything is about the internal port openings that happen as part of the communication between nodes (the ports in the range of 30000 that I notice in the logs):&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;mchn: Sending minimal parameter set to 10.136.106.51:36906&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Therefore, can you please let me know if these ports are configurable or can be somehow identified, so I can figure out how to manage them between inside and outside nodes to the K8s cluster?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12861/multichain-in-kubernetes</guid>
<pubDate>Wed, 13 Feb 2019 09:55:44 +0000</pubDate>
</item>
<item>
<title>Cannot connect to Multichain ran inside Docker</title>
<link>https://www.multichain.com/qa/11038/cannot-connect-to-multichain-ran-inside-docker</link>
<description>&lt;p&gt;I have created a Dockerfile to run a blockchain within a Docker container. The chain is created successfully, and multichaind ran, which gives an output of:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:#D3D3D3&quot;&gt;Other nodes can connect to this node using:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:#D3D3D3&quot;&gt;multichaind dockChain2@172.17.0.2:5001&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color:#D3D3D3&quot;&gt;Listening for API requests on port 5002&amp;nbsp;(local only - see rpcallowip setting)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;When trying to connect from another node the error received is -&amp;nbsp;&lt;/p&gt;&lt;p&gt;Error: Couldn't connect to the seed node 172.17.0.2 on port 5001 - please check multichaind is running at that address and that your firewall settings allow incoming connections.&lt;/p&gt;&lt;p&gt;I have tried exposing port 5001 in docker, and using &lt;span style=&quot;background-color:#D3D3D3&quot;&gt;docker ps -a&lt;/span&gt; shows&amp;nbsp;0.0.0.0:5001-&amp;gt;5001/tcp under PORTS.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11038/cannot-connect-to-multichain-ran-inside-docker</guid>
<pubDate>Thu, 13 Sep 2018 14:07:04 +0000</pubDate>
</item>
<item>
<title>Starting multichain and creating streams from script</title>
<link>https://www.multichain.com/qa/10861/starting-multichain-and-creating-streams-from-script</link>
<description>&lt;p&gt;I am trying to automate a creation of a multichain and also create/subscribe to a stream.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I wrote a bash script to run inside a docker container and the main elements of it are;&lt;/p&gt;&lt;pre&gt;&lt;em&gt;multichaind &lt;/em&gt;-txindex -printtoconsole -shrinkdebugfilesize $CHAINNAME

&lt;em&gt;multichain-cli &lt;/em&gt;$CHAINNAME create stream test false
&lt;em&gt;multichain-cli &lt;/em&gt;$CHAINNAME create stream user_data false
&lt;em&gt;multichain-cli &lt;/em&gt;$CHAINNAME subscribe test
&lt;em&gt;multichain-cli &lt;/em&gt;$CHAINNAME subscribe user_data&lt;/pre&gt;&lt;p&gt;I pretty much copied it from here -&amp;nbsp;&lt;a href=&quot;https://github.com/Kunstmaan/docker-multichain/blob/master/master/runchain.sh&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Kunstmaan/docker-multichain/blob/master/master/runchain.sh&lt;/a&gt;&lt;/p&gt;&lt;p&gt;My problem is, once the multichain starts it doesn't go on to create the streams. I tried adding -daemon at the end of the start command but then the docker container just stops once it gets to the bottom of the script.&lt;/p&gt;&lt;p&gt;Any ideas how I can start up the multichain but also run the create stream commands, all being executed from a bash file&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/10861/starting-multichain-and-creating-streams-from-script</guid>
<pubDate>Fri, 31 Aug 2018 18:08:30 +0000</pubDate>
</item>
<item>
<title>Connecting to docker instance that's running multichain</title>
<link>https://www.multichain.com/qa/9610/connecting-to-docker-instance-thats-running-multichain</link>
<description>&lt;p&gt;So I have a multichain instance running on a centos docker image. My main machine is Windows 10 and I can connect to my multichain node and run commands using the multichain-cli application.&lt;/p&gt;&lt;p&gt;Now I am writing a Java application that uses the&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/SimplyUb/MultiChainJavaAPI&quot;&gt;MultiChainJavaAPI&lt;/a&gt;&amp;nbsp;and I am getting an exception thrown when I try to connect and run any commands. The exception I get is;&lt;/p&gt;&lt;p&gt;MultichainException [&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object=code :401,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reason=message : Authorization Required,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; message=null,&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cause=null&lt;br&gt;]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I was originally working on an Ubuntu VM, and did not have a problem, but I wasn't running the multichain server on Docker. Now I am running it on windows I am facing this issue.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is CLI output from my terminals to show all is working.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Docker Image&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;[root@e91ecb9e1ebf recordz_chain]# multichaind recordz_chain -daemon&lt;/p&gt;&lt;p&gt;MultiChain 1.0.4 Daemon (latest protocol 10010)&lt;/p&gt;&lt;p&gt;Starting up node...&lt;/p&gt;&lt;p&gt;Other nodes can connect to this node using:&lt;br&gt;multichaind recordz_chain@172.17.0.3:6471&lt;/p&gt;&lt;p&gt;Listening for API requests on port 6470 (local only - see rpcallowip setting)&lt;/p&gt;&lt;p&gt;Node ready.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Windows Machine&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;PS C:\Software\multichain-windows-1.0.4&amp;gt; .\multichaind.exe recordz_chain -daemon&lt;/p&gt;&lt;p&gt;MultiChain 1.0.4 Daemon (latest protocol 10010)&lt;/p&gt;&lt;p&gt;Other nodes can connect to this node using:&lt;br&gt;multichaind recordz_chain@192.168.99.1:6471&lt;/p&gt;&lt;p&gt;This host has multiple IP addresses, so from some networks:&lt;br&gt;multichaind recordz_chain@192.168.56.1:6471&lt;br&gt;multichaind recordz_chain@192.168.0.10:6471&lt;/p&gt;&lt;p&gt;Listening for API requests on port 6470 (local only - see rpcallowip setting)&lt;/p&gt;&lt;p&gt;Node ready.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Command From Windows Terminal&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;PS C:\Software\multichain-windows-1.0.4&amp;gt; .\multichain-cli.exe recordz_chain getinfo&lt;/p&gt;&lt;p&gt;{&quot;method&quot;:&quot;getinfo&quot;,&quot;params&quot;:[],&quot;id&quot;:1,&quot;chain_name&quot;:&quot;recordz_chain&quot;}&lt;/p&gt;&lt;p&gt;{&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;version&quot; : &quot;1.0.4&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;nodeversion&quot; : 10004901,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;protocolversion&quot; : 10010,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;chainname&quot; : &quot;recordz_chain&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;description&quot; : &quot;MultiChain recordz_chain&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;protocol&quot; : &quot;multichain&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;port&quot; : 6471,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;setupblocks&quot; : 60,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;nodeaddress&quot; : &quot;recordz_chain@192.168.99.1:6471&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;burnaddress&quot; : &quot;1XXXXXXXLnXXXXXXiTXXXXXXTFXXXXXXWF5mxB&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;incomingpaused&quot; : false,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;miningpaused&quot; : false,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;walletversion&quot; : 60000,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;balance&quot; : 0.00000000,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;walletdbversion&quot; : 2,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;reindex&quot; : false,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;blocks&quot; : 59,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;timeoffset&quot; : 0,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;connections&quot; : 2,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;proxy&quot; : &quot;&quot;,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;difficulty&quot; : 0.00000006,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;testnet&quot; : false,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;keypoololdest&quot; : 1526140326,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;keypoolsize&quot; : 2,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;paytxfee&quot; : 0.00000000,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;relayfee&quot; : 0.00000000,&lt;br&gt;&amp;nbsp; &amp;nbsp; &quot;errors&quot; : &quot;&quot;&lt;br&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have the correct permissions setup and can communicate from my windows machine to my docker image, but when I am trying to run the application I get that error. I would have thought it was an issue with the API I am using, but I had this working before while on my Ubuntu VM, so I know its not the API.&lt;/p&gt;&lt;p&gt;I did find this answer -&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://www.multichain.com/qa/2444/running-multichain-docker-unable-connect-external-service&quot;&gt;https://www.multichain.com/qa/2444/running-multichain-docker-unable-connect-external-service&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I applied the solution of changing the defaulted password to a shorter one, just 'password' and restarted the multichain server and my windows connection to it. I also updated the password in my java application but still getting the same result.&lt;/p&gt;&lt;p&gt;I'm out of ideas now. Any help would be much appreciated&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/9610/connecting-to-docker-instance-thats-running-multichain</guid>
<pubDate>Sat, 12 May 2018 20:34:22 +0000</pubDate>
</item>
<item>
<title>Savoir: No JSON object could be decoded</title>
<link>https://www.multichain.com/qa/8765/savoir-no-json-object-could-be-decoded</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have not been able to use Savoir to make api calls to my multichain node. The node is running in a docker container and I have included rpcallowip of my computer from which I am trying make api calls using python and savoir.&lt;/p&gt;&lt;p&gt;First, making the standard getinfo() call raises &quot;No handlers could be found for logger &quot;Savoir&quot;. This is odd. The final error raised is &quot;No JSON object could be decoded&quot;.&lt;/p&gt;&lt;p&gt;How can this problem be solved? Many thanks!!&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:10px&quot;&gt;&lt;em&gt;No handlers could be found for logger &quot;Savoir&quot;&lt;br&gt;Traceback (most recent call last):&lt;br&gt;&amp;nbsp; File &quot;test_savoir.py&quot;, line 10, in &amp;lt;module&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result=api.listassets()&lt;br&gt;&amp;nbsp; File &quot;/home/helio/blockchain/multichain/savoir/Savoir/Savoir.py&quot;, line 65, in __call__&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; log.error(&quot;Json: %s&quot; % r.json())&lt;br&gt;&amp;nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/requests/models.py&quot;, line 885, in json&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return complexjson.loads(self.text, **kwargs)&lt;br&gt;&amp;nbsp; File &quot;/usr/lib/python2.7/json/__init__.py&quot;, line 339, in loads&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _default_decoder.decode(s)&lt;br&gt;&amp;nbsp; File &quot;/usr/lib/python2.7/json/decoder.py&quot;, line 364, in decode&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj, end = self.raw_decode(s, idx=_w(s, 0).end())&lt;br&gt;&amp;nbsp; File &quot;/usr/lib/python2.7/json/decoder.py&quot;, line 382, in raw_decode&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise ValueError(&quot;No JSON object could be decoded&quot;)&lt;br&gt;ValueError: No JSON object could be decoded&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/8765/savoir-no-json-object-could-be-decoded</guid>
<pubDate>Sat, 03 Mar 2018 22:18:42 +0000</pubDate>
</item>
<item>
<title>Run a node per docker container</title>
<link>https://www.multichain.com/qa/8753/run-a-node-per-docker-container</link>
<description>Is it possible to run a node per container and make them discover each other? Currently, I have made a Dockerfile:&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
FROM ubuntu:16.04&lt;br /&gt;
&lt;br /&gt;
WORKDIR /&lt;br /&gt;
&lt;br /&gt;
ADD . /multichain&lt;br /&gt;
&lt;br /&gt;
RUN apt-get update&lt;br /&gt;
RUN apt-get -y install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils&lt;br /&gt;
RUN apt-get -y install libboost-all-dev&lt;br /&gt;
RUN apt-get -y install git&lt;br /&gt;
RUN apt-get -y install software-properties-common&lt;br /&gt;
RUN add-apt-repository ppa:bitcoin/bitcoin&lt;br /&gt;
RUN apt-get update&lt;br /&gt;
RUN apt-get -y install libdb4.8-dev libdb4.8++-dev&lt;br /&gt;
&lt;br /&gt;
WORKDIR /multichain&lt;br /&gt;
&lt;br /&gt;
RUN ./autogen.sh&lt;br /&gt;
RUN ./configure&lt;br /&gt;
RUN make&lt;br /&gt;
&lt;br /&gt;
RUN cp src/multichain-util /usr/local/bin/&lt;br /&gt;
RUN cp src/multichaind /usr/local/bin/&lt;br /&gt;
RUN cp src/multichain-cli /usr/local/bin/&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
But since the `IP` and `port` of the chain are created randomly upon chain initialization, I cannot know what port and IP to expose when I run the containers.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/8753/run-a-node-per-docker-container</guid>
<pubDate>Fri, 02 Mar 2018 13:54:23 +0000</pubDate>
</item>
<item>
<title>Multichain CLI error - error: no response from server</title>
<link>https://www.multichain.com/qa/7724/multichain-cli-error-error-no-response-from-server</link>
<description>I start a node (master-node) that initializes a chain via docker. I also initialized other nodes (slaves), and connect to the master-node chain. &amp;quot;anyone-can-connect&amp;quot; is made true so no permissions are required. It connects successfully (&amp;quot;Node started&amp;quot; message is shown) and I can see the data directory for each node.&lt;br /&gt;
&lt;br /&gt;
I can connect multichain-cli (on my host machine ) to the master node and I can run commands such as getinfo.&lt;br /&gt;
&lt;br /&gt;
When I try to connect to the slave nodes, and run a command, it says &amp;quot;error: no response from server&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Both docker containers are running.</description>
<guid isPermaLink="true">https://www.multichain.com/qa/7724/multichain-cli-error-error-no-response-from-server</guid>
<pubDate>Thu, 30 Nov 2017 12:22:38 +0000</pubDate>
</item>
<item>
<title>Onboarding / Automating Node deployment</title>
<link>https://www.multichain.com/qa/5097/onboarding-automating-node-deployment</link>
<description>&lt;p&gt;Hi MC-Team,&lt;/p&gt;&lt;p&gt;would be great if you consider a better onboarding experience for new nodes that should join a existing network.&lt;/p&gt;&lt;p&gt;The problem here is (mainly when using docker, or other ways to automate nodes joining a network) that it is quite awkward at the moment to onboard a node.&lt;/p&gt;&lt;p&gt;When a node cannot join a network it just exits with a message.&lt;/p&gt;&lt;p&gt;To automate this I had to do a lot of scripting like:&lt;br&gt;- grep the account address (to hand it over to some node in the network for granting)&lt;br&gt;- start an additional rest service on the instance&amp;nbsp;just to be able to query the account address from outside because the node immediately stops when not able (allowed) to connect&lt;br&gt;- hard to get the account address without again trying to connect and grep from the error message if you missed it&lt;br&gt;- do a bash &lt;em&gt;for loop&lt;/em&gt; trying to connect every minute and see if permission were granted&lt;br&gt;&lt;br&gt;I think dockerization of MultiChain and something like Multichain as a Service offerings need a better handling in this case.&lt;/p&gt;&lt;p&gt;Maybe the node can keep running and tries connect polling itself?&lt;/p&gt;&lt;p&gt;Maybe when it keeps running it has a minimal json rpc interface that allows to query:&lt;br&gt;- the generated MC account&lt;br&gt;- some information that are available event without connectivity to another network (e.g. which network it wants to join etc...)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Greetings,&lt;/p&gt;&lt;p&gt;Alex&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/5097/onboarding-automating-node-deployment</guid>
<pubDate>Thu, 18 May 2017 11:23:24 +0000</pubDate>
</item>
<item>
<title>Running Multichain in a docker container</title>
<link>https://www.multichain.com/qa/5042/running-multichain-in-a-docker-container</link>
<description>I am trying to setup multichain in a docker container. It works fine till I shutdown the machine, but on reboot, the mining is not happening and block count remains static even after restart of the docker container.&lt;br /&gt;
&lt;br /&gt;
I have tried pausing mining and then stopping the node. And after machine restart and docker container restart, set the mining flag to resumed but the block count doesn't increase.&lt;br /&gt;
&lt;br /&gt;
Is this not supposed to work or is there some alternative for this?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/5042/running-multichain-in-a-docker-container</guid>
<pubDate>Sat, 13 May 2017 16:09:38 +0000</pubDate>
</item>
<item>
<title>Multichain &amp; Docker: peer discovery not working</title>
<link>https://www.multichain.com/qa/4482/multichain-%26-docker-peer-discovery-not-working</link>
<description>Hi.&lt;br /&gt;
&lt;br /&gt;
Is it possible to tell Multichain what ip and port it should exchange as endpoint information to other nodes?&lt;br /&gt;
&lt;br /&gt;
The peer discovery and exchange does not work when running inside a docker container since it seems that the nodes exchange the wrong ip address and port that is not accessible form outside the container because the container ip != public ip and the container p2p port != the external mapped p2p port.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
I can connect nodes manually but it seems they cannot share node information to get fully connected.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
What is the parameter -externalip for example?&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Greetings,&lt;br /&gt;
&lt;br /&gt;
Alex</description>
<guid isPermaLink="true">https://www.multichain.com/qa/4482/multichain-%26-docker-peer-discovery-not-working</guid>
<pubDate>Thu, 23 Mar 2017 20:33:50 +0000</pubDate>
</item>
<item>
<title>Connecting a node via a hostname defined in /etc/hosts?</title>
<link>https://www.multichain.com/qa/648/connecting-a-node-via-a-hostname-defined-in-etc-hosts</link>
<description>&lt;p&gt;For development I'm trying to use a docker cluster to have a master node and several slave nodes. The master node starts perfectly and is running (on port 7447).&lt;/p&gt;&lt;p&gt;On the slave nodes connecting also runs perfectly when using:&amp;nbsp;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;multichaind dockerchain@172.17.42.5:7447&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;I've got no real indication on the IP address of the master node but&amp;nbsp;docker-compose exposes&amp;nbsp;in /etc/hosts on the slave nodes:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;172.17.42.5&amp;nbsp;&amp;nbsp; &amp;nbsp;masternode&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;So i've tried running&amp;nbsp;&quot;multichaind dockerchain@masternode:7447&quot;, but it gives me&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;...&lt;/p&gt;&lt;p&gt;mchn: Could not establish connection with seed node - timeout&lt;/p&gt;&lt;p&gt;...&lt;/p&gt;&lt;p&gt;Error: Couldn't connect to the seed node masternode on port 7447 - please check multichaind is running at that address and that your firewall settings allow incoming connections.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Now strangely enough, if i first connect using the IP address, then the masternode version works as well.&lt;/p&gt;&lt;p&gt;What am I missing here?&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/648/connecting-a-node-via-a-hostname-defined-in-etc-hosts</guid>
<pubDate>Wed, 30 Dec 2015 07:46:48 +0000</pubDate>
</item>
</channel>
</rss>