I’m trying to build a docker image. When I issue the build command I got the following error.
[code language=”shell”]
$ docker build -t messenger .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/Dockerfile: no such file or directory
[/code]
I was executing the command from /tmp instead of /tmp/messenger, where the Dockerfile is located. When I executed from /tmp/messenger, it worked.