3

运行 docker build 命令时是否可以在控制台/日志文件中获取步骤时间戳?

Step 28/49 : RUN find dist -name "*.map" -delete 
 ---> Running in 5e1ee1063999 
Removing intermediate container 5e1ee1063999 
 ---> a02191df133c 
Step 29/49 : FROM dotnet-install AS web-build 
 ---> e0ecdc23b275 
Step 30/49 : COPY src src 
 ---> d33c7da41fb9

我想确定最慢的步骤,我希望是这样的:

2019-11-25T12:00:00Z : Step 28/49 : RUN find dist -name "*.map" -delete 
 ---> Running in 5e1ee1063999 
Removing intermediate container 5e1ee1063999 
 ---> a02191df133c 
2019-11-25T12:10:00Z : Step 29/49 : FROM dotnet-install AS web-build 
 ---> e0ecdc23b275 
2019-11-25T12:20:00Z : Step 30/49 : COPY src src 
 ---> d33c7da41fb9
4

0 回答 0