add flag "--pidfile" for podman create/run

Signed-off-by: chenkang <kongchen28@gmail.com>
This commit is contained in:
wuhua.ck
2021-04-15 22:36:50 +08:00
committed by chenkang
parent 373f15f617
commit 8fbe06b8cb
12 changed files with 53 additions and 1 deletions

View File

@ -1224,6 +1224,13 @@ The default working directory for running binaries within a container is the roo
The image developer can set a different default with the WORKDIR instruction. The operator
can override the working directory by using the **-w** option.
#### **\-\-pidfile**=*path*
Write the pid of the container process to a file.
The default pidfile is RunDir/pidfile.
## EXAMPLES
### Create a container using a local image

View File

@ -1305,6 +1305,12 @@ The default working directory for running binaries within a container is the roo
The image developer can set a different default with the WORKDIR instruction. The operator
can override the working directory by using the **-w** option.
#### **\-\-pidfile**=*path*
Write the pid of the container process to a file.
The default pidfile is RunDir/pidfile.
## Exit Status
The exit code from **podman run** gives information about why the container