title: Is s3fs not able to mount inside docker container?
body: <p>I want to mount s3fs inside of docker container.</p>
  
  <p>I made docker image with s3fs, and did like this:</p>
  
  <pre><code>host$ docker run -it --rm docker/s3fs bash
  [ root@container:~ ]$ s3fs s3bucket /mnt/s3bucket -o allow_other -o allow_other,default_acl=public-read -ouse_cache=/tmp
  fuse: failed to open /dev/fuse: Operation not permitted
  </code></pre>
  
  <p>Showing "Operation not permitted" error.</p>
  
  <p>So I googled, and did like this (adding --privileged=true) again:</p>
  
  <pre><code>host$ docker run -it --rm --privileged=true docker/s3fs bash
  [ root@container:~ ]$ s3fs s3bucket /mnt/s3bucket -o allow_other -o allow_other,default_acl=public-read -ouse_cache=/tmp
  [ root@container:~ ]$ ls /mnt/s3bucket
  ls: cannot access /mnt/s3bucket: Transport endpoint is not connected
  [ root@container:~ ]$ fusermount -u /mnt/s3bucket
  [ root@container:~ ]$ s3fs s3bucket /mnt/s3bucket -o allow_other -o allow_other,default_acl=public-read -ouse_cache=/tmp
  [ root@container:~ ]$ ls /mnt/s3bucket
  ls: cannot access /mnt/s3bucket: Transport endpoint is not connected
  </code></pre>
  
  <p>Then, mounting not shows error, but if run ls command, "Transport endpoint is not connected" error is occured.</p>
  
  <p>How can I mount s3fs inside of docker container?
  Is it impossible?</p>
  
  <p>[UPDATED]</p>
  
  <p>Add Dockerfile configuration.</p>
  
  <p>Dockerfile:</p>
  
  <pre><code>FROM dockerfile/ubuntu
  
  RUN apt-get update
  RUN apt-get install -y build-essential
  RUN apt-get install -y libfuse-dev
  RUN apt-get install -y fuse
  RUN apt-get install -y libcurl4-openssl-dev
  RUN apt-get install -y libxml2-dev
  RUN apt-get install -y mime-support
  
  RUN \
    cd /usr/src &amp;&amp; \
    wget http://s3fs.googlecode.com/files/s3fs-1.74.tar.gz &amp;&amp; \
    tar xvzf s3fs-1.74.tar.gz &amp;&amp; \
    cd s3fs-1.74/ &amp;&amp; \
    ./configure --prefix=/usr &amp;&amp; \
    make &amp;&amp; make install
  
  ADD passwd/passwd-s3fs /etc/passwd-s3fs
  ADD rules.d/99-fuse.rules /etc/udev/rules.d/99-fuse.rules
  RUN chmod 640 /etc/passwd-s3fs
  
  RUN mkdir /mnt/s3bucket
  </code></pre>
  
  <p>rules.d/99-fuse.rules:</p>
  
  <pre><code>KERNEL==fuse, MODE=0777
  </code></pre>