Updating poste.io to newer image
Our mantra is that updating should be a seamless experience. Basically, all you have to do is download the new image and launch the container in the usual way.
PRO version
$ docker stop container-name $ cp -a /data/mailserver-dir /data/mailserver-dir.backup # backup data $ docker login -u "<username>" -p "<password>" https://poste.io $ docker pull poste.io/mailserver # download new image $ docker rename container-name container-name-backup # do image backup $ docker run \ -p 25:25 \ -p 80:80 \ -p 110:110 \ -p 143:143 \ -p 443:443 \ -p 587:587 \ -p 993:993 \ -p 995:995 \ -v /etc/localtime:/etc/localtime:ro \ -v /data/mailserver-dir:/data \ --name container-name \ -t poste.io/mailserver
Free version
$ docker stop container-name $ cp -a /data/mailserver-dir /data/mailserver-dir.backup # backup data $ docker pull analogic/poste.io # download new image $ docker rename container-name container-name-backup # do image backup $ docker run \ -p 25:25 \ -p 80:80 \ -p 110:110 \ -p 143:143 \ -p 443:443 \ -p 587:587 \ -p 993:993 \ -p 995:995 \ -v /etc/localtime:/etc/localtime:ro \ -v /data/mailserver-dir:/data \ --name container-name \ -t analogic/poste.io
All other changes and updates to the /data directory are handled automatically at container startup.
Upgrade poste.io from 1.x to 2.x
- stop mailserver container
- backup your data directory
- delete/rename data/queue and data/log folder (they are in incompatible format)
- pull latest image and start new container