loading...

re: Don't just "docker-compose up" VIEW POST

FULL DISCUSSION
 

Definitely useful. Just remember you'll have to clean up your containers instances manually using this method.

Usually I'll start with the -ti flags instead and use Ctrl+p,q to terminate the shell's attachment once everything is up and stable. It's valuable for me as I tend to muck with the environment a lot. If something fails before ssh inits it's handy to be able to term early. If your images and configurations are stable and rarely change, -d is probably ideal :)

 

I tend to leave them up and running on the stacks I am working on a daily basis. If not, I will just stop them with > docker-compose stop. Thank you for your comment! 😁

Code of Conduct Report abuse