[19.03 backport] rootless: fix killing daemon
| ... | ... |
@@ -75,7 +75,7 @@ if [ -z $_DOCKERD_ROOTLESS_CHILD ]; then |
| 75 | 75 |
# namespace from being unexpectedly unmounted when `/etc/resolv.conf` is recreated on the host |
| 76 | 76 |
# (by either systemd-networkd or NetworkManager) |
| 77 | 77 |
# * /run: copy-up is required so that we can create /run/docker (hardcoded for plugins) in our namespace |
| 78 |
- $rootlesskit \ |
|
| 78 |
+ exec $rootlesskit \ |
|
| 79 | 79 |
--net=$net --mtu=$mtu \ |
| 80 | 80 |
--disable-host-loopback --port-driver=builtin \ |
| 81 | 81 |
--copy-up=/etc --copy-up=/run \ |
| ... | ... |
@@ -86,5 +86,5 @@ else |
| 86 | 86 |
# remove the symlinks for the existing files in the parent namespace if any, |
| 87 | 87 |
# so that we can create our own files in our mount namespace. |
| 88 | 88 |
rm -f /run/docker /run/xtables.lock |
| 89 |
- dockerd $@ |
|
| 89 |
+ exec dockerd $@ |
|
| 90 | 90 |
fi |