ERROR: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0:

You can try these extra parameters -f .docker to your command, where you have to specify the docker build file.