Build git does not clone submodules

I run a docker build from a git repo using “Docker version 17.06.2-ce, build cec0b72”. If i look at the temp file, it looks like the submodules arr not cloned. Is this a known issue?