By declaring the VOLUME $RABBITMQ_DATA_DIR in the base Dockerfile, (i.e.
|
VOLUME $RABBITMQ_DATA_DIR |
), it ensures that changes to that directory in subsequent Dockerfiles are ignored. This can cause very confusing behavior if, for instance, a user wants to add a specific erlang cookie in a new Dockerfile that inherits from this one. Additionally, if the behavior of
rabbitmq-plugins were to change such that relies on modifying the data dir, the management Dockerfile would at least partially break.