I am trying to build Docker image from my Dockerfile. I have Docker-CE 18.06 installed on CentOS 7 guest OS, running on VMWare Player 14. The project directory is inside shared folder mounted via VMWare's vmhgfs-fuse tool. My host OS is Windows 10 Home. As of now, I don't use docker-compose for this project yet.
[superdurszlak@localhost candidate-match]$ sudo docker build -t candidate-match .
unable to prepare context: path "." not found
[superdurszlak@localhost candidate-match]$ sudo docker build -t candidate-match --file ./Dockerfile .
unable to prepare context: path "." not found
I have double-checked if my Dockerfile is named correctly, if my docker daemon is up and running, if my working directory is correct and if shared folder's contents are accessible from inside guest OS without issues.
What are possible causes of such an error?
I'm in an Ubuntu environment and the snap was giving me this problem. I solved my issue by uninstalling and then installing with these directions: https://docs.docker.com/engine/install/ubuntu/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With