Univention Bugzilla – Attachment 8514 Details for
Bug 43455
Running systemd inside container needs special docker run options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
systemd_docker_create_options.patch
systemd_docker_create_options.patch (text/plain), 992 bytes, created by
Arvid Requate
on 2017-03-09 20:07:45 CET
(
hide
)
Description:
systemd_docker_create_options.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2017-03-09 20:07:45 CET
Size:
992 bytes
patch
obsolete
>Index: python/appcenter-docker/docker.py >=================================================================== >--- python/appcenter-docker/docker.py (Revision 77542) >+++ python/appcenter-docker/docker.py (Arbeitskopie) >@@ -345,9 +345,15 @@ > cert_dir = '/etc/univention/ssl/%s.%s' % (ucr_get('hostname'), ucr_get('domainname')) > cert_volume = '%s:%s:ro' % (cert_dir, cert_dir) > volumes.add(cert_volume) >+ volumes.add('/sys/fs/cgroup:/sys/fs/cgroup:ro') > env_file = self.ucr_filter_env_file(env) > command = shlex.split(self.app.docker_script_init) > args = shlex.split(ucr_get(self.app.ucr_docker_params_key, '')) >+ args.extend(["--stop-signal", "SIGRTMIN+3"]) >+ for tmpfs in ("/run", "/tmp"): >+ args.extend(["--tmpfs", tmpfs]) >+ args.append("--cap-add=SYS_ADMIN") >+ args.extend(["-e", "container=docker"]) > container = create(self.image, command, hostname, ports, volumes, env_file, args) > ucr_save({self.app.ucr_container_key: container}) > self.container = container
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43455
: 8514