funkyfuture / deck-chores

A job scheduler for Docker containers, configured via labels.
https://deck-chores.readthedocs.io/
ISC License
197 stars 27 forks source link

Updated docs example for redirecting output to enable `docker logs` to work as normal #67

Closed andymadge closed 3 years ago

andymadge commented 3 years ago

Previous example was redirecting both stdout and stderr to PID 1's stdout.

The updated example maintains the separation of stdout and stderr into docker logs, where either stream can be redirected independently as per normal Docker behaviour. To output one of them, you redirect the stream you DON'T want:

Only show stderr: docker logs foo > /dev/null

Only show stdout: docker logs foo 2>/dev/null

Tests not run as this is a docs-only PR.

funkyfuture commented 3 years ago

thank you!