途中メモ

dockerをCentOSに入れる時、

ver.7なら、docker

ver.6なら、docker-io ※epel

 

CentOS6.xだといっぱいエラーでて、起動できない

Starting cgconfig service: Error: cannot mount memory to /cgroup/memory: No such file or directory
/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed
Failed to parse /etc/cgconfig.conf or /etc/cgconfig.d      [FAILED]

 

https://coreos.com/docs/running-coreos/platforms/iso/#known-limitations

 を参考に、/etc/cgconfig.confmemory = /cgroup/memory;  コメントアウトして、OS再起動。

 

それでもまだエラーでる。

docker daemon: 1.3.2 39fa2fa/1.3.2; execdriver: native; graphdriver:
[0612bedc] +job serveapi(unix:///var/run/docker.sock)
[info] Listening for HTTP on unix (/var/run/docker.sock)
[0612bedc] +job init_networkdriver()
Unable to enable network bridge NAT: iptables failed: iptables -I POSTROUTING -t nat -s 172.17.42.1/16 ! -o docker0 -j MASQUERADE: iptables v1.4.7: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
 (exit status 3)
[0612bedc] -job init_networkdriver() = ERR (1)
(exit status 3)

 

iptablesの問題でdockerが起動できない障害 - Qiita

これ?

kmod (ipt_MASQUERADE.ko) がない。

未解決状態