efrecon / docker-s3fs-client

Alpine-based s3fs client: mount from container, make available to other containers
BSD 3-Clause "New" or "Revised" License
181 stars 64 forks source link

Running container with command docker service #30

Closed efenfauzi closed 2 years ago

efenfauzi commented 2 years ago

From docs say its posible running on swarm enviroment. I have 2 node with active swarm joined. Simplest trial is running container service with docker service create --env bla blah blah --constraint node

And i still confuse from file docker-compose.yml with :

    security_opt:
          - 'apparmor:unconfined'
    devices:
          - /dev/fuse

this no option when run with docker container. My plan just simple, I want to try this s3 container service on swarm mode.
Example :

efrecon commented 2 years ago

It's been a while I dabbled with swarm, but have a look here: https://serverfault.com/questions/824516/how-to-set-linux-capabilities-on-docker-swarm-mode-service-invocations there is a solution to run a container directly on the host in the comments.

efrecon commented 2 years ago

@efenfauzi Did you solve this? security_opt seems to be part of the latest spec, as is devices. Don't they work with docker stack deploy?

efrecon commented 2 years ago

Closing this in lack of response