Postal installed in LXD/LXC container.... docker container "lost" after copying the LXD container from server to laptop. #3186
Unanswered
JohnHammell
asked this question in
Help with using Postal
Replies: 1 comment 6 replies
-
I don't really know much about LXD but I do know that maria and mysql can be a bit funky with copying data around depending on the table type. I'm also presuming you are running it with a data volume to preserve its contents so it might be worth stopping the container before the snapshot, to ensure the data is definitely stored locally. If that doesn't work, presumably you could mysqldump it. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My first Postal install, which was fairly recent, runs inside an LXD container. Everything seems to be running just right. I never have problems with restarting the LXD container as whenever I do Postal is right back up and running exactly as before the restart.
I'm running into a problem with copying the LXD container from my server to my laptop so I can do some local work on it, basically poke around a bit, etc, on a dev copy of the LXD container with Postal.
However, after I copy the LXD container with Postal none of docker containers are running. They all fail to start back up. Doing this same thing on my server to the original LXD container, restarting it, does not cause the Postal docker containers to stop running.
I've been able to get the web ui, smtp & worker postal docker containers back up pretty easily, just by running: postal start
The postal-mariadb container, though, kinda looks as though it's "lost." The folder for postal-mariadb is in /var/lib/docker, but when I try to start it I get a message that it is not found:
Any idea what is going on with this?
Literally, all I did was stopped the LXD container with the actively running Postal installation, took an LXD snapshot of the container (which is basically as ZFS snapshot as far as I know), then downloaded that snapshot to my laptop. Then I start that LXD container on my laptop and the issues I described arise. Not really sure why Postal does not start back up on its own but the main issue is the "lost" postal-mariadb docker container.
"lost" is in quotes because I really don't know. Maybe I'm doing something wrong here or maybe there's some command I'm not aware of which needs to be used to get postal-mariadb started up again.
Beta Was this translation helpful? Give feedback.
All reactions