diff options
| author | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-08-18 16:42:02 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2016-08-20 17:27:17 +0000 |
| commit | 6710bbeb7c8bdcec45b1fb01c78618f6c9482e80 (patch) | |
| tree | 05cd9e87f19028f32b610d0b439c703399988a62 /docker/kolla-toolbox | |
| parent | 755d5172b325fbfebb80df64a63d6faf653c3390 (diff) | |
| download | kolla-6710bbeb7c8bdcec45b1fb01c78618f6c9482e80.tar.gz kolla-6710bbeb7c8bdcec45b1fb01c78618f6c9482e80.zip | |
Use dumb-init to manage the pid 1 process
Normally, when you launch a Docker container, the process you're
executing becomes PID 1, giving it the quirks and responsibilities that
come with being the init system for the container.
There are two common issues this presents:
* In most cases, signals won't be handled properly.
* Orphaned zombie processes aren't properly reaped.
the dumb-init acting like a simple init system. It launches a single
process and then proxies all received signals to a session rooted at
that child process.
Closes-Bug: #1614509
Change-Id: I9d3d04648e151ddc7c6732b92ffd3b6c9fe467ec
Diffstat (limited to 'docker/kolla-toolbox')
| -rw-r--r-- | docker/kolla-toolbox/Dockerfile.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/kolla-toolbox/Dockerfile.j2 b/docker/kolla-toolbox/Dockerfile.j2 index 44611c059..8e12bfce9 100644 --- a/docker/kolla-toolbox/Dockerfile.j2 +++ b/docker/kolla-toolbox/Dockerfile.j2 @@ -66,7 +66,7 @@ COPY ansible.cfg /home/ansible/.ansible.cfg COPY ansible_sudoers /etc/sudoers.d/ansible_sudoers RUN chmod 440 /etc/sudoers.d/ansible_sudoers -CMD ["/bin/sleep", "infinity"] +CMD ["/usr/local/bin/dumb-init", "/bin/sleep", "infinity"] {% block kolla_toolbox_footer %}{% endblock %} {% block footer %}{% endblock %} |
