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
In nerdctl, logs are not persisted when containers are restarted or recreated. This behavior is observed in the following scenarios:
Using nerdctl run followed by nerdctl start -a
Using nerdctl restart
Using nerdctl create followed by nerdctl start and nerdctl restart
In all these cases, only the most recent logs are available after a container restart or recreation.
Describe the solution you'd like
nerdctl should log persist logs similar to Docker and Podman.
Specifically:
Logs should be preserved across container restarts.
When using nerdctl start -a on a previously run container, both old and new logs should be accessible.
The nerdctl restart command should not replace previous logs but append new ones.
Containers created with nerdctl create and then started should maintain their logs across multiple starts.
Additional context
No response
The text was updated successfully, but these errors were encountered:
So it seems that go-logrotate has a bug when MaxBytes is set to -1 and rotates the logs for every re-invocation. creating another log file with a .1 suffix.
What is the problem you're trying to solve
In nerdctl, logs are not persisted when containers are restarted or recreated. This behavior is observed in the following scenarios:
nerdctl run
followed bynerdctl start -a
nerdctl restart
nerdctl create
followed bynerdctl start
andnerdctl restart
In all these cases, only the most recent logs are available after a container restart or recreation.
Describe the solution you'd like
nerdctl should log persist logs similar to Docker and Podman.
Specifically:
Logs should be preserved across container restarts.
When using
nerdctl start -a
on a previously run container, both old and new logs should be accessible.The
nerdctl restart
command should not replace previous logs but append new ones.Containers created with
nerdctl create
and then started should maintain their logs across multiple starts.Additional context
No response
The text was updated successfully, but these errors were encountered: