title: Mount s3fs as docker volume
body: <p>So I just want to add my s3 bucket from amazon to my docker swarm. I've saw many "possible" solutions on the internet but I can't connect them to add the content of my bucket as volume.</p>
  
  <p>So the last thing I've tried was the command statet here (<a href="https://stackoverflow.com/questions/24966347/is-s3fs-not-able-to-mount-inside-docker-container">Is s3fs not able to mount inside docker container?</a>):</p>
  
  <pre><code>docker run --rm -t -i --privileged -e AWS_ACCESS_KEY_ID=XXXX -e AWS_SECRET_ACCESS_KEY=XXXX -e AWS_STORAGE_BUCKET_NAME=XXXX docker.io/panubo/s3fs bash
  </code></pre>
  
  <p>It's working pretty well but if I now exit bash the container stops and I can't do anything with it. Is it possible to make this thing to stay and add it as a volume?</p>
  
  <p>Or would it be the better solution if I just mount the bucket on my Docker instance and then add it as a local volume? Would this be the better idea?</p>