Add support for devices in a service

This commit is contained in:
Kevin Elliott 2019-09-13 12:11:57 -07:00 committed by Muayyad Alsadi
parent 243bdb688d
commit 751aaa87f6

View File

@ -459,6 +459,8 @@ def container_to_args(compose, cnt, detached=True, podman_command='run'):
if net:
podman_args.extend(['--network', net])
env = norm_as_list(cnt.get('environment', {}))
for d in cnt.get('devices', []):
podman_args.extend(['--device', d])
for e in env:
podman_args.extend(['-e', e])
for i in cnt.get('env_file', []):