mirror of
https://github.com/containers/podman-compose.git
synced 2025-07-07 16:06:59 +02:00
implement --publish in docker-compose run
Signed-off-by: Denis Ledoux <dle@odoo.com>
This commit is contained in:
@ -2587,6 +2587,10 @@ def compose_run_update_container_from_args(compose, cnt, args):
|
||||
del cnt[k]
|
||||
except KeyError:
|
||||
pass
|
||||
if args.publish:
|
||||
ports = cnt.get("ports", [])
|
||||
ports.extend(norm_ports(args.publish))
|
||||
cnt["ports"] = ports
|
||||
if args.volume:
|
||||
# TODO: handle volumes
|
||||
volumes = clone(cnt.get("volumes", None) or [])
|
||||
|
Reference in New Issue
Block a user