boot2docker ã® VM ã®è¨å®ãå¤æ´ãã
boot2docker(v1.0.0) ã® VM ã¯åèµ·åããã¨æåã§è¨å®ããå 容ã¯ã¯ãªã¢ããã¦ãã¾ããã¹ã¯ãªããã以ä¸ã®å ´æã«ç½®ãã¦ãããã¨ã§ãã¼ãã®æå¾ã«å®è¡ãã¦ãããã
/var/lib/boot2docker/bootlocal.sh
ä»åã¯ã³ã³ããã«å²ãå½ã¦ããã IP ãå¤æ´ãããã£ãã®ã§ãdocker0
ãèªåã§äºåã«ä½æãã¦ãããããªã¹ã¯ãªãããç½®ãã¦ãããã¨ã§è§£æ±ºã§ããã
sudo sh -c ' cat <<EOL > /var/lib/boot2docker/bootlocal.sh ip link add docker0 type bridge ip addr add 192.168.17.1/24 dev docker0 ip link set docker0 up EOL chmod +x /var/lib/boot2docker/bootlocal.sh '
docker
ãã¼ã¢ã³èµ·åæã«å¼æ°ãè¨å®ãããå ´åã¯ã/var/lib/boot2docker/profile
ã« EXTRA_ARGS="--dns 192.168.1.2"
ã®ããã«è¨è¿°ãã¦ããã¨ãinit.d
ããèµ·åããéã«èªã¿è¾¼ãã§ãããããã®ãã¨ã¯ /etc/init.d/docker
ãèªãã§ç¥ã£ãã®ã ãã©ãFAQ ã«æ¸ãã¦ãã£ãã®ã§å
ã«ããã¥ã¡ã³ããèªãããã«ãããã