Detached commands fail too silently

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.

Last Updated: 2024-11-23

When running a command detached, e.g. docker-compose up -d, if the process fails, you will not see anything on the terminal - no error message, no indication of failure.

Because of this radio silence, I failed to notice that the mysql container failed to launch.

Lesson

When debugging or when new to a project, avoid detached processes since they swallow errors silently.