I'm running :
$ docker build -t somefile .
Every time I run that I get this error:
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat
The full error is:
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/someusername/code/Dockerfile: no such file or directory
I thought this had to do with the docker version I'm using, so upgraded to the latest version using this guide: Install Latest docker version. I still get the same error. I've tried different docker versions. I've tried on different servers. I've even tried different docker files.
The last server I tried on I was using this version of docker:
Docker version 17.03.1-ce, build c6d412e
Not sure where I'm going wrong. Need a sanity check please.