From d112945070b2b646a16a6f0d5f04ba6948c93025 Mon Sep 17 00:00:00 2001 From: Andrew Peebles Date: Sun, 19 Mar 2017 17:34:42 -0700 Subject: [PATCH] When using a docker volume plugin, the volumes get created at run time, and get mounted over the directories listed in VOLUME, so none of the installed files are there any more! All I did was remove the VOLUME directive in Dockerfile. --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9ef98f3..b8fe7a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,7 +83,6 @@ RUN apt-get clean\ # defaults EXPOSE 80 2003-2004 2023-2024 8125/udp 8126 -VOLUME ["/opt/graphite/conf", "/opt/graphite/storage", "/etc/nginx", "/opt/statsd", "/etc/logrotate.d", "/var/log"] WORKDIR / ENV HOME /root CMD ["/sbin/my_init"]