I am migrating a tvial docker mail server from one system to another. I set this up some time ago, and vaguely remember the steps, but not every detail. I copied my mail data and mail state volumes to the new system, but when I went to run docker on the new system I was confused. The old system shows this in docker compose:
- maildata:/var/mail
- mailstate:/var/mail-state
volumes:
maildata:
driver: local
mailstate:
driver: local
But the volumes have different names:
$ sudo docker volume ls
DRIVER VOLUME NAME
local tvial_docker-mailserver_maildata
local tvial_docker-mailserver_mailstate
If I inspect the running instance it shows that it is bound to the correct volume.
How do I reproduce this on the new system?
EDIT:
I ran the docker container on the new system and the maillog container seems to be constructed using a similar nomenclature:
Creating volume "tvial_docker-mailserver_maillogs" with local driver
So this is no longer a pressing issue, but I reviewed the dockerfile for this container, and I don't see where the name is coming from. Can anyone tell me?