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

Published

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 docker.io/library/python:3.8.12-bullseye                                       
1.5s  => [auth] library/python:pull token for registry-1.docker.io                                                   
0.0s  => [internal] load build context                                                                               
2.0s  => => transferring context: 847.24kB                                                                           
1.9s  => [1/7] FROM docker.io/library/python:[email protected]:b39ab988ac2fa749273cf6fdeb89fb3635850824419dc61  
0.0s  => => resolve docker.io/library/python:[email protected]:b39ab988ac2fa749273cf6fdeb89fb3635850824419dc61  
0.0s  =>   CACHED [2/7] WORKDIR /usr/src/app

Source: Docker Questions

Published
Categorised as docker, docker-compose Tagged ,

Answers

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
faq