mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-08 21:44:41 +02:00
Implement x-podman.pod_args to override --pod-args default
Allow setting an argument list as x-podman.pod_args to override the default value `--infra=false --share=`. `--pod-args` passed on the command line takes precedence over the value set in docker-compose.yml; the values are not merged. Fixes #1057. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
@ -174,3 +174,17 @@ services:
|
||||
x-podman:
|
||||
in_pod: false
|
||||
```
|
||||
|
||||
It is also possible to override the default arguments for pod creation that are
|
||||
used when --pod-args is not passed on the command line:
|
||||
```yml
|
||||
version: "3"
|
||||
services:
|
||||
cont:
|
||||
image: nopush/podman-compose-test
|
||||
command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-p", "8080"]
|
||||
x-podman:
|
||||
pod_args: ["--infra=false", "--share=", "--cpus=1"]
|
||||
```
|
||||
When not set in docker-compose.yml or on the command line, the pod args default
|
||||
to `["--infra=false", "--share="]`.
|
||||
|
Reference in New Issue
Block a user