title: provide s3fs mount to docker as volume
body: <p>I´d Like to use a mounted S3 Bucket (using s3fs) as a volume within a docker container.</p>
  
  <p><strong>I have:</strong>
  a mounted S3 Bucket (with s3fs) at /mnt/bucketname on my ec2 Machine
  using: </p>
  
  <pre><code>sudo /usr/bin/s3fs -o allow_other,uid=500,umask=227,gid=500 bucketname /mnt/bucketname
  </code></pre>
  
  <p>and can read all files/folders in /mnt/bucketname.</p>
  
  <p>This is the command i use to run my Docker Image (with interactive terminal):</p>
  
  <pre><code>sudo docker run -v /mnt/bucketname:/test -it Imagename /bin/bash
  </code></pre>
  
  <p>Within the Docker Container, the files (which should appear in /test/) are not present.</p>
  
  <p>What might be the problem here?</p>
  
  <p>Did someone use a s3fs mount and provide it to docker as a volume before or is this entirely the wrong way to do it?</p>
  
  <p>Thanks for any answers.</p>