finch icon indicating copy to clipboard operation
finch copied to clipboard

Enable logging for containers launched without -d

Open pendo324 opened this issue 2 years ago • 1 comments
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.

pendo324 avatar Dec 02 '22 19:12 pendo324

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

ningziwen avatar Dec 15 '22 00:12 ningziwen