Git Product home page Git Product logo

Comments (5)

efrecon avatar efrecon commented on July 25, 2024

The code auto-injects the -o:

S3FS_ARGS="-o $S3FS_ARGS"
. Which image version are you using?

from docker-s3fs-client.

sbancal avatar sbancal commented on July 25, 2024

I didn't specified a version, so I assume I use the latest.

from docker-s3fs-client.

sbancal avatar sbancal commented on July 25, 2024

Here is my docker-compose.yml file :

---
version: '3.8'
services:
  s3fs:
    privileged: true
    image: efrecon/s3fs
    restart: unless-stopped
    environment:
      - AWS_S3_URL=${S3_ENDPOINT_URL}
      - AWS_S3_BUCKET=${S3_BUCKET_NAME}
      - AWS_S3_ACCESS_KEY_ID=${S3_ACCESS_KEY_ID}
      - AWS_S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY}
      - UID=${S3_UID}
      - GID=${S3_GID}
      - S3FS_ARGS='-oallow_other'
      - S3FS_DEBUG=0
    volumes:
      - ${S3PATH}:/opt/s3fs/bucket:rshared
    devices:
      - /dev/fuse
    cap_add:
      - SYS_ADMIN
    security_opt:
      - apparmor=unconfined
# ...

When I change it to S3FS_ARGS='allow_other', I get :

s3fs_1 | s3fs: unable to access MOUNTPOINT xyzxyzxyzxyzxyzxyzxyzxyz: No such file or directory
s3fs_1 | Mount failure

Without that S3FS_ARGS option, mount succeed, but I have some "forbiden" access right problems in other docker services.

from docker-s3fs-client.

pchampio avatar pchampio commented on July 25, 2024

When I change it to S3FS_ARGS='allow_other', I get :

s3fs_1 | s3fs: unable to access MOUNTPOINT xyzxyzxyzxyzxyzxyzxyzxyz: No such file or directory
s3fs_1 | Mount failure

IIRC, I had the same error, removing the quotes should fix this: S3FS_ARGS=allow_other.

from docker-s3fs-client.

efrecon avatar efrecon commented on July 25, 2024

The quotes are misplaced according to the Docker compose specification (well, actually more of a YAML issue). If you want quotes, you should place them around the whole expression, i.e. "S3FS_ARGS=allow_other"

from docker-s3fs-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.