summaryrefslogtreecommitdiff
path: root/docs/source/markdown/podman-create.1.md
diff options
context:
space:
mode:
authorchenkang <kongchen28@gmail.com>2021-04-16 23:45:10 +0800
committerchenkang <kongchen28@gmail.com>2021-04-17 16:08:08 +0800
commit80c1dd0651ac7f70f09c1a5259a17f5cef59ab13 (patch)
tree85bd91c1adee9e7ed2d01dffae16e26942f0efe4 /docs/source/markdown/podman-create.1.md
parentf331c9445f0be468a47a43e290845f7b637535d5 (diff)
downloadpodman-80c1dd0651ac7f70f09c1a5259a17f5cef59ab13.tar.gz
podman-80c1dd0651ac7f70f09c1a5259a17f5cef59ab13.tar.bz2
podman-80c1dd0651ac7f70f09c1a5259a17f5cef59ab13.zip
Modify according to comments
Signed-off-by: chenkang <kongchen28@gmail.com>
Diffstat (limited to 'docs/source/markdown/podman-create.1.md')
-rw-r--r--docs/source/markdown/podman-create.1.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/source/markdown/podman-create.1.md b/docs/source/markdown/podman-create.1.md
index 08b1db9ba..1ac5a3951 100644
--- a/docs/source/markdown/podman-create.1.md
+++ b/docs/source/markdown/podman-create.1.md
@@ -149,6 +149,7 @@ Write the container ID to the file
#### **\-\-conmon-pidfile**=*path*
Write the pid of the `conmon` process to a file. `conmon` runs in a separate process than Podman, so this is necessary when using systemd to restart Podman containers.
+(This option is not available with the remote Podman client)
#### **\-\-cpu-period**=*limit*
@@ -1226,9 +1227,15 @@ can override the working directory by using the **-w** option.
#### **\-\-pidfile**=*path*
-Write the pid of the container process to a file.
+When the pidfile location is specified, the container process' PID will be written to the pidfile. (This option is not available with the remote Podman client)
+After the container is started, the location for the pidfile can be discovered with the following `podman inspect` command:
-The default pidfile is RunDir/pidfile.
+ $ podman inspect --format '{{ .Config.CreateCommand }}' $CID
+ podman run --pidfile $pidfilepath image
+
+If the pidfile option is not specified, the container process' PID will be written to
+/run/containers/storage/${storage-driver}-containers/$CID/userdata/pidfile.
+The default pidfile location is not listed in the `podman inspect` output.
## EXAMPLES