Merge pull request #7102 from zmstone/fix-docker-no-volume-for-etc

fix(docker): allow config changes in docker rebuild
This commit is contained in:
Zaiming (Stone) Shi 2022-02-22 13:59:12 +01:00 committed by GitHub
commit f87d262fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,11 @@ File format:
## v4.3.13
### Important changes
* For docker image, /opt/emqx/etc has been removed from the VOLUME list,
this made easier for users to rebuild image on top with changed configs.
### Enhancements
* CLI `emqx_ctl pem_cache clean` to force purge x509 certificate cache,

View File

@ -60,7 +60,8 @@ RUN chgrp -Rf emqx /opt/emqx && chmod -Rf g+w /opt/emqx \
USER emqx
VOLUME ["/opt/emqx/log", "/opt/emqx/data", "/opt/emqx/etc"]
## NOTE: /opt/emqx/etc is removed from the VOLUME list since 4.3.13
VOLUME ["/opt/emqx/log", "/opt/emqx/data"]
# emqx will occupy these port:
# - 1883 port for MQTT