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

cgroup issue with systemd 226 #171

Closed
apognu opened this issue Sep 30, 2015 · 3 comments
Closed

cgroup issue with systemd 226 #171

apognu opened this issue Sep 30, 2015 · 3 comments

Comments

@apognu
Copy link
Contributor

apognu commented Sep 30, 2015

Hi,

I'm not sure if this falls under nomad's scope, but it would appear, as referenced in moby/moby#16256, systemd version 226 introduces init.scope into their cgroup FS, and it messes up quite a bit (nomad could not run containrs on my system).

I have not read anywhere what distros nomad means to support, so I assume recent systemd-based ones are part of it.

I understand this may not be nomad's fault and will probably be fixed upstream, but maybe the workaround could be mentionned somewhere in the docs?

Adding the following option to the Docker daemon fixed it for me:

--exec-opt native.cgroupdriver=cgroupfs

Regards,

@cbednarski
Copy link
Contributor

--exec-opt native.cgroupdriver=cgroupfs

Thanks! I think we can incorporate this.

I have not read anywhere what distros nomad means to support, so I assume recent systemd-based ones are part of it.

To answer the more general question, I developed the docker integration on Ubuntu 15.04 (which uses systemd) but we do not currently support interaction with systemd.

We use docker as-is so if docker supports a particular systemd feature, Nomad will support it in that limited capacity. However, our isolation mechanisms for exec do not currently support systemd, so you may have strange compatibility problems if you run both types of workloads on a systemd system.

This is an issue we're aware of and will address but we don't have an immediate timeline for this.

@dadgar
Copy link
Contributor

dadgar commented Jan 7, 2016

This should be fixed now. If it is still failing we can reopen.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants