How to find out how long your Docker image build takes for each layer? Measuring the total build time is quite straightforward - just add time in front of your docker build command. You also don’t have to sit there with a stop-watch to time your layers. Here’s a simple way to get the time each layer you build: Use the BuildKit buildx Command BuildKit brings along a few useful features you can use out of the box starting with Docker 18.