mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00
Merge pull request #18838 from rhatdan/workdir
Add WorkingDir support to quadlet
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user