IP アドレスを調べて SSH でログインする。
root@boot2docker:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 76:6D:78:96:A3:20
inet addr:192.168.64.10 Bcast:192.168.64.255 Mask:255.255.255.0
inet6 addr: fe80::746d:78ff:fe96:a320/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:101 errors:0 dropped:0 overruns:0 frame:0
TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12069 (11.7 KiB) TX bytes:14451 (14.1 KiB)
$ ssh docker@192.168.64.10 -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
docker@192.168.64.10's password:
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
_ _ ____ _ _
| |__ ___ ___ | |_|___ \ __| | ___ ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__| < __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
Boot2Docker version 1.9.1, build master : cef800b - Fri Nov 20 19:33:59 UTC 2015
Docker version 1.9.1, build a34a1d5
docker@boot2docker:~$
HDD をセットアップをする
docker@boot2docker:~$ curl -OL https://raw.githubusercontent.com/ailispaw/boot2docker-xhyve/master/contrib/makehdd/makehdd.sh
docker@boot2docker:~$ chmod +x makehdd.sh
docker@boot2docker:~$ sed -i 's/vda/sda/g' makehdd.sh
docker@boot2docker:~$ sudo ./makehdd.sh
docker@boot2docker:~$ sudo shutdown -h now