Skip to content

Commit

Permalink
Don't use VOLUME in a base Dockerfile
Browse files Browse the repository at this point in the history
Addresses issues like docker-library#255 and docker-library#214
  • Loading branch information
MaddieM4 authored Sep 24, 2019
1 parent d56d41d commit 694d376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 5.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ RUN { \
# don't reverse lookup hostnames, they are usually another container
&& echo '[mysqld]\nskip-host-cache\nskip-name-resolve' > /etc/mysql/conf.d/docker.cnf

VOLUME /var/lib/mysql
# Debian installs an initial database, that we don't want to keep
RUN rm -rf /var/lib/mysql

COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat
Expand Down

0 comments on commit 694d376

Please sign in to comment.