My docker is very slow when I try to create images on my laptop. I tried to create the same image on my ubuntu inside a virtual machine with the same version of dockers and it will close it in 5 seconds, but on my laptop it evaluates each statement as 30 times slower. Even a team ENV!
The laptop uses OpenSUSE 42.2 Leap with Btrfs as the root file system, a hard disk with 5400 rpm, and also encrypted. I know all these factors, but are they so significant that my build takes 15 minutes instead of 5 seconds?
Docker 1.13.1.
Thank.
UPD.
Not sure if this helps or not, but when I run docker build -t test .on my virtual machine, it uses 10% of my 4-core processor for 5 seconds and uses the HDD heavily.
however, on a laptop, it uses one core of my quad-core processor 100% all the time, and the hard drive almost does not work.
here are the nmon statistics:

source
share