cowrie/docker-cowrie

Read only mount for /cowrie/cowrie-git/etc is not supported

Closed this issue · 0 comments

Currently, the docker file backups the config.cfg.dist into a directory before to expose the volume, and after docker try to move backuped file to the mounted directory:

RUN cp ${COWRIE_HOME}/cowrie-git/etc/cowrie.cfg.dist ${COWRIE_HOME}/cowrie-git
VOLUME [ "/cowrie/cowrie-git/var", "/cowrie/cowrie-git/etc" ]
RUN mv ${COWRIE_HOME}/cowrie-git/cowrie.cfg.dist ${COWRIE_HOME}/cowrie-git/etc

However if the volume is mounted in read only mode, the "mv" command will fail.