turnbullpress / dockerbook-code

The code and configuration examples from The Docker Book (http://www.dockerbook.com)
927 stars 581 forks source link

Remove /data volume creation #15

Closed kostyrev closed 9 years ago

kostyrev commented 9 years ago

Hello, James! I'm sending this PR only to ask a question. I bought your book and I've got a question regarding this VOLUME /data directive. Why did you add this volume? I've noticed no difference in behavior of jekyll and apache containers when I deleted that directive. Could you please elaborate?

jamtur01 commented 9 years ago

You don't explicitly need VOLUME but it pre-declares the volume will be present and useful. I tend to use it to ensure people know when they introspect the image that the volume is needed.