mac $ boot2docker init --disksize=50000 --memory=2048 mac $ boot2docker start
確認結果
mac $ boot2docker ssh docker@boot2docker:~$ df -h Filesystem Size Used Available Use% Mounted on rootfs 1.8G 204.8M 1.6G 11% / tmpfs 1.8G 204.8M 1.6G 11% / tmpfs 1004.6M 0 1004.6M 0% /dev/shm /dev/sda1 47.0G 68.9M 44.5G 0% /mnt/sda1 cgroup 1004.6M 0 1004.6M 0% /sys/fs/cgroup /dev/sda1 47.0G 68.9M 44.5G 0% /mnt/sda1/var/lib/docker/aufs docker@boot2docker:~$ free total used free shared buffers Mem: 2057440 271940 1785500 0 1348 -/+ buffers: 270592 1786848 Swap: 447972 0 447972 docker@boot2docker:~$ cat /proc/meminfo MemTotal: 2057440 kB
次は、web server, db をセットアップしよう
mac $ boot2docker stop