finch
finch copied to clipboard
Enable logging for containers launched without -d
trafficstars
What is the problem you're trying to solve?.
Currently if you run a container without -d option, no logs are persisted.
Describe the feature you'd like
Would like logs to be available even without -d
Additional context Add any other context or screenshots about the feature request here.
To reproduce the issue:
finch run -it ubuntu
# open a new terminal
finch ps # find the container id
finch logs <container-id>
FATA[0000] open /home/ningziwen.linux/.local/share/nerdctl/1935db59/containers/finch/4141acbb1632e395e13d6eabf9d33990d6da610bb250b563e35925f76d689ba6/log-config.json: no such file or directory
FATA[0000] exit status 1