Wrong volume reference when using docker-compose (ref: http://stackoverflow.com/a/39125414)

This commit is contained in:
Guillaume Simon 2017-02-11 16:28:36 +01:00
parent 597d642f8c
commit 830fb9807b
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ You should use a [data volume container](https://medium.com/@ramangupta/why-dock
Assuming that you use `docker-compose` and a data volume container named `maildata`, you can backup your user mails like this:
docker run --rm \
--volumes-from maildata_1 \
--volume dockermailserver_maildata:/var/mail \
-v "$(pwd)":/backups \
-ti tvial/docker-mailserver \
tar cvzf /backups/docker-mailserver-`date +%y%m%d-%H%M%S`.tgz /var/mail