boot2dockerのTiny Core Linuxは、VMを再起動するとファイルが消えてしまうので、dockerでvolume指定しても再起動すると消えてしまう

でも、一部消えない領域があって、マニュアルには

Changes outside of the /var/lib/docker and /var/lib/boot2docker directories will be lost after powering down or restarting the boot2docker VM. However, if you have a persistence partition (created automatically by boot2docker init), you can make customisations that are run at the end of boot initialisation by creating a script at /var/lib/boot2docker/bootlocal.sh

と書かれているので、ここにvolumeをマウントしてあげると、ファイルは消えないらしい

docker-compose.yml

ので、こうした

volumes:
    - /var/lib/boot2docker/containers/9zilla/etc/nginx/conf.d/:/etc/nginx/conf.d/
    - /var/lib/boot2docker/containers/9zilla/etc/pki/tls/certs/:/etc/pki/tls/certs/
    - /var/lib/boot2docker/containers/9zilla/var/lib/mysql/:/var/lib/mysql/
    - /var/lib/boot2docker/containers/9zilla/usr/local/lib/behat/features/:/usr/local/lib/behat/features/