Merge pull request #18838 from rhatdan/workdir

Add WorkingDir support to quadlet
This commit is contained in:
OpenShift Merge Robot
2023-06-12 09:56:06 -04:00
committed by GitHub
4 changed files with 40 additions and 20 deletions

View File

@ -137,6 +137,7 @@ Valid options for `[Container]` are listed below:
| UserNS=keep-id:uid=200,gid=210 | --userns keep-id:uid=200,gid=210 |
| VolatileTmp=true | --tmpfs /tmp |
| Volume=/source:/dest | --volume /source:/dest |
| WorkingDir=$HOME | --workdir $HOME |
Description of `[Container]` section are:
@ -491,6 +492,12 @@ created by using a `$name.volume` Quadlet file.
This key can be listed multiple times.
### `WorkingDir=`
Working directory inside the container.
The default working directory for running binaries within a container is the root directory (/). The image developer can set a different default with the WORKDIR instruction. This option overrides the working directory by using the -w option.
## Kube units [Kube]
Kube units are named with a `.kube` extension and contain a `[Kube]` section describing