Unable to create custom image with DockerFile in Ubuntu 20.04. After typing
docker build .
facing below error,
**Note- DockerFile is in current directory.
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount4001728379/Dockerfile: no such file or directory
Do you still have this problem? Even if you are sure the Dockerfile is in the same folder as you, it is better to share some commands and the output so we can see that too. If you see this error message, then Docker can’t see the Dockerfile. Make sure your filename is correct. Use Dockerfile and not DockerFile or set the path of the Dockerfile when you run docker build.