From 022bf589c8ee23783721038f7b9e536ac489add7 Mon Sep 17 00:00:00 2001 From: chenkang Date: Sat, 17 Apr 2021 21:25:11 +0800 Subject: improve document Signed-off-by: chenkang --- docs/source/markdown/podman-create.1.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'docs/source/markdown/podman-create.1.md') diff --git a/docs/source/markdown/podman-create.1.md b/docs/source/markdown/podman-create.1.md index 1ac5a3951..db9ff937b 100644 --- a/docs/source/markdown/podman-create.1.md +++ b/docs/source/markdown/podman-create.1.md @@ -1228,14 +1228,12 @@ can override the working directory by using the **-w** option. #### **\-\-pidfile**=*path* 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: +If the pidfile option is not specified, the container process' PID will be written to /run/containers/storage/${storage-driver}-containers/$CID/userdata/pidfile. - $ podman inspect --format '{{ .Config.CreateCommand }}' $CID - podman run --pidfile $pidfilepath image +After the container is started, the location for the pidfile can be discovered with the following `podman inspect` command: -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. + $ podman inspect --format '{{ .PidFile }}' $CID + /run/containers/storage/${storage-driver}-containers/$CID/userdata/pidfile ## EXAMPLES -- cgit v1.2.3-54-g00ecf