how to save the logs for docker-compose up -d –build


The logs are printed on the console when I do docker-compose up -d --build, how can I have them saved to a file so I can go through the logs?

These logs

0.0s  => => transferring dockerfile: 771B                                                                            
0.0s  => [internal] load .dockerignore                                                                               
0.0s  => => transferring context: 2B                                                                                 
0.0s  => [internal] load metadata for                                       
1.5s  => [auth] library/python:pull token for                                                   
0.0s  => [internal] load build context                                                                               
2.0s  => => transferring context: 847.24kB                                                                           
1.9s  => [1/7] FROM[email protected]:b39ab988ac2fa749273cf6fdeb89fb3635850824419dc61  
0.0s  => => resolve[email protected]:b39ab988ac2fa749273cf6fdeb89fb3635850824419dc61  
0.0s  =>   CACHED [2/7] WORKDIR /usr/src/app

Source: Docker Questions

Categorised as docker, docker-compose Tagged ,


Leave a Reply

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us