Closed mokibit closed 2 weeks ago
I forgot how any of this works but shouldn't this be a per-container setting?
I forgot how any of this works but shouldn't this be a per-container setting?
Pod is grouping of containers. At least currently all services in compose file are put in a single pod if this is enabled. Is there use case when some containers are put in a pod and the rest aren't?
Default command line argument
in_pod
was set to True, but this breaks the compose file for users who want to use--userns
argument. This PR sets defaultin_pod
value to None, and later resolves whether to create a pod by checking compose file, as new argument in compose file x-podman is now available (documentation is updated and tests added). Now it is convenient for users to pass customin_pod
value (True or False) as a compose file argument when command line value ofin_pod
is not provided. This PR solves issues: https://github.com/containers/podman-compose/issues/795, https://github.com/containers/podman-compose/issues/935, https://github.com/containers/podman-compose/issues/673, https://github.com/containers/podman-compose/issues/695, https://github.com/containers/podman-compose/issues/166.