<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>docker problem on ubuntu 14.04</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/152 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="152"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="code"&gt;&lt;pre class="txt"&gt;$ service docker restart&#13;
stop: Unknown instance: &#13;
docker start/running, process 22604&#13;
&#13;
$ service docker status&#13;
docker start/running, process 22992&#13;
&#13;
$ service docker status&#13;
docker start/running, process 23093&#13;
&#13;
$ docker ps&#13;
2014/11/12 09:56:11 Get http:///var/run/docker.sock/v1.15/containers/json: read unix /var/run/docker.sock: connection reset by peer&#13;
&#13;
$ service docker stop&#13;
docker stop/waiting&#13;
&#13;
$ docker -d&#13;
2014/11/12 09:57:12 docker daemon: 1.3.1 4e9bbfa; execdriver: native; graphdriver: &#13;
[df63e949] +job serveapi(unix:///var/run/docker.sock)&#13;
[info] Listening for HTTP on unix (/var/run/docker.sock)&#13;
[df63e949] +job init_networkdriver()&#13;
Unable to enable network bridge NAT: iptables failed: iptables --wait -I POSTROUTING -t nat -s 172.17.42.1/16 ! -o docker0 -j MASQUERADE: iptables v1.4.21: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)&#13;
Perhaps iptables or your kernel needs to be upgraded.&#13;
 (exit status 3)&#13;
[df63e949] -job init_networkdriver() = ERR (1)&#13;
2014/11/12 09:57:13  (exit status 3)&#13;
&#13;
$ iptables -t nat -F&#13;
iptables v1.4.21: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)&#13;
Perhaps iptables or your kernel needs to be upgraded.&#13;
&lt;/pre&gt;&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/152/rev-raw/6ce1fcc7a70969278cd17f430aef6eb9db0ac9c7/1-problem.txt" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/152#1-problem.txt"&gt;1-problem.txt&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="code"&gt;&lt;pre class="txt"&gt;/var/log/syslog&#13;
Nov 12 09:56:03 csystems kernel: [56122.269577] init: docker main process (22604) terminated with status 1&#13;
Nov 12 09:56:03 csystems kernel: [56122.269585] init: docker main process ended, respawning&#13;
Nov 12 09:56:03 csystems kernel: [56122.834056] init: docker main process (22651) terminated with status 1&#13;
Nov 12 09:56:03 csystems kernel: [56122.834063] init: docker main process ended, respawning&lt;/pre&gt;&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/152/rev-raw/6ce1fcc7a70969278cd17f430aef6eb9db0ac9c7/2-syslog.txt" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/152#2-syslog.txt"&gt;2-syslog.txt&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="code"&gt;&lt;pre class="txt"&gt;https://github.com/docker/docker/issues/866?source=c&#13;
&amp;gt; Missing the 'nat' table is a symptom of missing kernel modules.&#13;
&#13;
task: rebuild iptables kernel modules since I have a custom kernel&#13;
&#13;
https://github.com/docker/docker/issues/866?source=c#issuecomment-43093182&#13;
&amp;gt; I was missing IP_NF_TARGET_MASQUERADE in my kernel config.&#13;
&#13;
$ make menuconfig&#13;
Location:&#13;
-&amp;gt; Networking support (NET [=y])&#13;
   -&amp;gt; Networking options&#13;
      -&amp;gt; Network packet filtering framework (Netfilter) (NETFILTER [=y])&#13;
         -&amp;gt; IP: Netfilter Configuration&#13;
            -&amp;gt; IP tables support (required for filtering/masq/NAT) (IP_NF_IPTABLES [=m])&#13;
               -&amp;gt; iptables NAT support (IP_NF_NAT [=n])                                                                                                &#13;
&#13;
iptables NAT support&#13;
- MASQUERADE target support&#13;
- NETMAP target support&#13;
- REDIRECT target support  &lt;/pre&gt;&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/152/rev-raw/6ce1fcc7a70969278cd17f430aef6eb9db0ac9c7/3-solution.txt" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/152#3-solution.txt"&gt;3-solution.txt&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
