Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker stack deploy does not support systemd containers (cap_add, tmpfs) #4441

Closed
jamshid opened this issue Feb 8, 2017 · 2 comments
Closed

Comments

@jamshid
Copy link

jamshid commented Feb 8, 2017

Nobody wants to run systemd in a container, but it's necessary because not all software is docker-ready, or docker is being used to simulate a production system.

It's great that docker 1.13 can now deploy a docker-compose.yml to swarm, but the limited configuration support means systemd containers will not run. docker stack deploy reports:

Ignoring unsupported options: cap_add, devices, privileged, security_opt, tmpfs

When will stack/bundle/dab/whatever support systemd containers, which require cap_add and tmpfs?

    cap_add:
      - SYS_ADMIN
    tmpfs: /run
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    environment:
      - container=docker

Ref moby/moby#28614 (comment)

PS: devices would also be very useful especially if the value could somehow be made different on different swarm nodes.

@shin-
Copy link

shin- commented Feb 8, 2017

Hi!

For anything related to the docker stack commands, you'll need to create an issue on the docker/docker repo - I'm afraid I can only assist with issues related to docker-compose itself.

@jamshid
Copy link
Author

jamshid commented Feb 8, 2017

ok: moby/moby#30846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants