mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-07 14:39:53 +01:00
Add support for devices in a service
This commit is contained in:
parent
243bdb688d
commit
751aaa87f6
@ -459,6 +459,8 @@ def container_to_args(compose, cnt, detached=True, podman_command='run'):
|
|||||||
if net:
|
if net:
|
||||||
podman_args.extend(['--network', net])
|
podman_args.extend(['--network', net])
|
||||||
env = norm_as_list(cnt.get('environment', {}))
|
env = norm_as_list(cnt.get('environment', {}))
|
||||||
|
for d in cnt.get('devices', []):
|
||||||
|
podman_args.extend(['--device', d])
|
||||||
for e in env:
|
for e in env:
|
||||||
podman_args.extend(['-e', e])
|
podman_args.extend(['-e', e])
|
||||||
for i in cnt.get('env_file', []):
|
for i in cnt.get('env_file', []):
|
||||||
|
Loading…
Reference in New Issue
Block a user