Sometimes, when I do "docker-compose up -d", I forget the "-d" part. So it starts to show me starting logs and if I do Ctrl + C it just terminates all the process and shows me the closing logs.
I have several questions about this :
If I manage to detach the process with detach keys (Ctrl P Ctrl Q by default) is it the exact same result as if I had started docker-compose with -d ?
Now if detach keys don't work (impossible to input Ctrl Q) is it the same result to do "Ctrl-Z" bg compared to starting docker-compose with -d ?
docker-compose up displays streaming logs. This is the main advantage over docker-compose up -d.
If you ran docker-compose up -d, it's never too late. You are still able to display those streaming logs:
docker-compose logs -f