Modifying or adding volumes

This caught my eye as the solution seems trivial. However, as I experienced, simply adding a VOLUME directive to the Dockerfile (and all the other docker hub autobuild stuff) breaks the docker container.

This ticket suggests that you also need to include an EXPOSE and ENV directive, though I’m unclear which. In my case, I’ve added:

VOLUME /var/www/html

To this Dockerfile, found here. All these seems to do, however, is empty that directory’s contents by the end of the build process.

My fork of the container (github.com/docker-library/drupal) I wish to add the VOLUME directive to is here: github.com/kyleskrinak/drupal. I will greatly appreciate reading how I should change the Dockerfile so that I can access the container’s directory via Kitematic.

Thanks, Kyle