Failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1250121352/Dockerfile: no such file or directory

When I’m trying to create the image of appium/appium with a docker build it showed me the next message:

failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1250121352/Dockerfile: no such file or directory