'[[0;1;31mFAILED[0m] Failed to start' when running cloud-init?
From my rather limited experience, a likely reason is that the command sudo docker image build does not find the docker file.
(But a virtual machine may have been successfully created.)