{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"docker problem on ubuntu 14.04","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/152 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"152\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">$ service docker restart\r\nstop: Unknown instance: \r\ndocker start\/running, process 22604\r\n\r\n$ service docker status\r\ndocker start\/running, process 22992\r\n\r\n$ service docker status\r\ndocker start\/running, process 23093\r\n\r\n$ docker ps\r\n2014\/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\r\n\r\n$ service docker stop\r\ndocker stop\/waiting\r\n\r\n$ docker -d\r\n2014\/11\/12 09:57:12 docker daemon: 1.3.1 4e9bbfa; execdriver: native; graphdriver: \r\n[df63e949] +job serveapi(unix:\/\/\/var\/run\/docker.sock)\r\n[info] Listening for HTTP on unix (\/var\/run\/docker.sock)\r\n[df63e949] +job init_networkdriver()\r\nUnable 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?)\r\nPerhaps iptables or your kernel needs to be upgraded.\r\n (exit status 3)\r\n[df63e949] -job init_networkdriver() = ERR (1)\r\n2014\/11\/12 09:57:13  (exit status 3)\r\n\r\n$ iptables -t nat -F\r\niptables v1.4.21: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)\r\nPerhaps iptables or your kernel needs to be upgraded.\r\n<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/152\/rev-raw\/6ce1fcc7a70969278cd17f430aef6eb9db0ac9c7\/1-problem.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/152#1-problem.txt\">1-problem.txt<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">\/var\/log\/syslog\r\nNov 12 09:56:03 csystems kernel: [56122.269577] init: docker main process (22604) terminated with status 1\r\nNov 12 09:56:03 csystems kernel: [56122.269585] init: docker main process ended, respawning\r\nNov 12 09:56:03 csystems kernel: [56122.834056] init: docker main process (22651) terminated with status 1\r\nNov 12 09:56:03 csystems kernel: [56122.834063] init: docker main process ended, respawning<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/152\/rev-raw\/6ce1fcc7a70969278cd17f430aef6eb9db0ac9c7\/2-syslog.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/152#2-syslog.txt\">2-syslog.txt<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">https:\/\/github.com\/docker\/docker\/issues\/866?source=c\r\n&gt; Missing the 'nat' table is a symptom of missing kernel modules.\r\n\r\ntask: rebuild iptables kernel modules since I have a custom kernel\r\n\r\nhttps:\/\/github.com\/docker\/docker\/issues\/866?source=c#issuecomment-43093182\r\n&gt; I was missing IP_NF_TARGET_MASQUERADE in my kernel config.\r\n\r\n$ make menuconfig\r\nLocation:\r\n-&gt; Networking support (NET [=y])\r\n   -&gt; Networking options\r\n      -&gt; Network packet filtering framework (Netfilter) (NETFILTER [=y])\r\n         -&gt; IP: Netfilter Configuration\r\n            -&gt; IP tables support (required for filtering\/masq\/NAT) (IP_NF_IPTABLES [=m])\r\n               -&gt; iptables NAT support (IP_NF_NAT [=n])                                                                                                \r\n\r\niptables NAT support\r\n- MASQUERADE target support\r\n- NETMAP target support\r\n- REDIRECT target support  <\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/152\/rev-raw\/6ce1fcc7a70969278cd17f430aef6eb9db0ac9c7\/3-solution.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/152#3-solution.txt\">3-solution.txt<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
