Add support for --chrootdirs

Signed-off-by: LStandman <65296484+LStandman@users.noreply.github.com>
This commit is contained in:
LStandman
2022-02-12 13:45:49 +02:00
parent 0144cabc41
commit e8968c867f
13 changed files with 116 additions and 4 deletions

View File

@ -1453,6 +1453,11 @@ After the container is started, the location for the pidfile can be discovered w
$ podman inspect --format '{{ .PidFile }}' $CID
/run/containers/storage/${storage-driver}-containers/$CID/userdata/pidfile
#### **--chrootdirs**=*path*
Path to a directory inside the container that should be treated as a `chroot` directory.
Any Podman managed file (e.g., /etc/resolv.conf, /etc/hosts, etc/hostname) that is mounted into the root directory will be mounted into that location as well.
Multiple directories should be separated with a comma.
## EXAMPLES

View File

@ -1529,6 +1529,12 @@ After the container is started, the location for the pidfile can be discovered w
$ podman inspect --format '{{ .PidFile }}' $CID
/run/containers/storage/${storage-driver}-containers/$CID/userdata/pidfile
#### **--chrootdirs**=*path*
Path to a directory inside the container that should be treated as a `chroot` directory.
Any Podman managed file (e.g., /etc/resolv.conf, /etc/hosts, etc/hostname) that is mounted into the root directory will be mounted into that location as well.
Multiple directories should be separated with a comma.
## Exit Status
The exit code from **podman run** gives information about why the container