mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
fix --init with /dev bind mount
The init binary until now has been bind-mounted to /dev/init which breaks when bind-mounting to /dev. Instead mount the init to /run/podman-init. The reasoning for using /run is that it is already used for other runtime data such as secrets. Fixes: #14251 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -460,6 +460,8 @@ content that disappears when the container is stopped.
|
||||
#### **--init**
|
||||
|
||||
Run an init inside the container that forwards signals and reaps processes.
|
||||
The container-init binary is mounted at `/run/podman-init`.
|
||||
Mounting over `/run` will hence break container execution.
|
||||
|
||||
#### **--init-ctr**=*type* (pods only)
|
||||
|
||||
|
@ -498,6 +498,8 @@ content that disappears when the container is stopped.
|
||||
#### **--init**
|
||||
|
||||
Run an init inside the container that forwards signals and reaps processes.
|
||||
The container-init binary is mounted at `/run/podman-init`.
|
||||
Mounting over `/run` will hence break container execution.
|
||||
|
||||
#### **--init-path**=*path*
|
||||
|
||||
|
Reference in New Issue
Block a user