mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
12f2f03fd2
As this is currently not possible to add a PID into an existing systemd unit, plus this feature will be deprected in runc 1.2 (see commitd08bc0c1b3("runc run: warn on non-empty cgroup"), let's reject sharing a systemd unit between two containers, and fix the test case accordingly. We still allow this to happen in case cgroupfs driver is used, to minimize the potential compatibility issues in a stable branch. This is an adaptation of main branch commit82bc89cd10for 1.1. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>