Fix #782: add support for http_proxy

Signed-off-by: ChuJiani <archet@chujiani.top>
This commit is contained in:
ChuJiani
2024-03-09 17:10:09 +00:00
parent f2f2f15a3b
commit c98cbaaaf0
2 changed files with 23 additions and 0 deletions

View File

@ -889,6 +889,8 @@ async def container_to_args(compose, cnt, detached=True):
podman_args.extend(["--annotation", a])
if cnt.get("read_only", None):
podman_args.append("--read-only")
if cnt.get("http_proxy", None) is False:
podman_args.append("--http-proxy=false")
for i in cnt.get("labels", []):
podman_args.extend(["--label", i])
for c in cnt.get("cap_add", []):