Error checking context is accessible: 'can't stat '.gvfs''. Please check permissions and try again
I created a Dockerfile in my root.
FROM ubuntu:12.04 MAINTAINER Bhim Singh <firstname.lastname@example.org> RUN apt-get y install java CMD echo hello
then i tried to run this command :
sudo docker build -t bhim3003/myjava .
I am recieving this error:
” Error checking context is accessible: ‘can’t stat ‘.gvfs”. Please
check permissions and try again.”
And docker image is not created. Any suggestions?
2 Solutions collect form web for “Error checking context is accessible: 'can't stat '.gvfs''. Please check permissions and try again”
I faced the same issue while working with boot2docker on Windows 7. However I was able to build it successfully after moving dockerfile outside home directory.
In my case this issue is occurred because when we call docker build all files searched in working directory and as docker does not run with administrator privilege cannot access to some files and this error generated.
- Move to directory which all user can accessed (for example: /c)
- Create new directory (sep)
- Create Dockerfile in new directory
- Run build
$ cd /c $ mkdir sep $ cd sep $ touch Dockerfile # vi Dockerfile # docker build -t fahsep/debian