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 <bhim3003@gmail.com>

RUN apt-get y install java

CMD echo hello

then i tried to run this command : sudo docker build -t bhim3003/myjava .

  • Overriding `tcp.publish_port` breaks clustering when elasticsearch is in a container
  • Sporadic Robolectric test failures when running inside Docker container
  • Connect to Dockerized IIS remotely
  • Assetss from wwwroot cannot be found on Docker Image
  • persist mtu settings on boot2docker / docker-machine
  • DOCKER installation ERROR “Internal error: Failed to expand shell folder constant ”userdocs" on Windows
  • 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?

  • mysql_install_db in Docker container returns error
  • How to add 3rd party jar to maven container docker
  • Caching docker images circleci
  • Architecture for scheduler jobs in AWS ECS [closed]
  • Why docker (Container-based technologies) are useful
  • Using a multidomain certificate for artifactory dokcer repo
  • 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.

    Solution:

    • Move to directory which all user can accessed (for example: /c)
    • Create new directory (sep)
    • Create Dockerfile in new directory
    • Run build

    commands:

    $ cd /c
    
    $ mkdir sep
    
    $ cd sep
    
    $ touch Dockerfile
    
    # vi Dockerfile
    
    # docker build -t fahsep/debian
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.