Realised you can't commit Docker images inside DinD because of the /var/lib/docker volume. So need to use --volumes-from