You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty new to docker, so this might be the root of the problem.
When I run docker run --rm gilleslamiral/imapsync imapsync <usual imapsync arguments> the logs are created somewhere inside the container. And if I understand that correctly, they will be removed after imapsync is done, because the container is stopped.
No matter if this is true or not I would like to store the logs on a volume outside of the container.
I tried this: docker run --rm -v /var/services/homes/backup:LOG_imapsync gilleslamiral/imapsync imapsync <usual imapsync arguments> but that doesn't seem to work. Either my volume path is wrong (but I don't think so, because I can access it with the same user as I run the container with cd /var/services/homes/backup gets me exactly where I want the logs to be. So I assume that LOG_imapsync is wrong. What path should I put there so the logs get correctly stored where I want them.
When I try to use ./LOG_imapsync as stated as the correct log path, I get an error that I have to use absolute paths.
Any idea? Thanks!
The text was updated successfully, but these errors were encountered:
I'm pretty new to docker, so this might be the root of the problem.
When I run
docker run --rm gilleslamiral/imapsync imapsync <usual imapsync arguments>
the logs are created somewhere inside the container. And if I understand that correctly, they will be removed after imapsync is done, because the container is stopped.No matter if this is true or not I would like to store the logs on a volume outside of the container.
I tried this:
docker run --rm -v /var/services/homes/backup:LOG_imapsync gilleslamiral/imapsync imapsync <usual imapsync arguments>
but that doesn't seem to work. Either my volume path is wrong (but I don't think so, because I can access it with the same user as I run the container withcd /var/services/homes/backup
gets me exactly where I want the logs to be. So I assume thatLOG_imapsync
is wrong. What path should I put there so the logs get correctly stored where I want them.When I try to use
./LOG_imapsync
as stated as the correct log path, I get an error that I have to use absolute paths.Any idea? Thanks!
The text was updated successfully, but these errors were encountered: