docker / cli

The Docker CLI
Apache License 2.0
4.94k stars 1.93k forks source link

[Feature]. `logs` command. Add ability to `--follow` container's restarts #3426

Open o-alexandrov opened 2 years ago

o-alexandrov commented 2 years ago

Description

When invoking logs command in cli, there's no ability to --follow container's restarts. So if a container stops, the process exits.

Current workaround is to either:

Related issue

Output of docker version:

Docker version 20.10.12, build e91ed57
dever23b commented 2 years ago

This would be a great feature to save time and hassle when developing. My use case: developing a Node.js app that runs in a container. Every time I need to restart the app, I have to also restart the log viewer.