mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-22 16:03:16 +01:00
Add support for volume driver and options
This commit is contained in:
parent
377b5525c9
commit
56a4988481
@ -303,6 +303,12 @@ def assert_volume(compose, mount_dict):
|
||||
]
|
||||
for item in norm_as_list(labels):
|
||||
args.extend(["--label", item])
|
||||
driver = vol.get("driver")
|
||||
if driver:
|
||||
args.extend(["--driver", driver])
|
||||
driver_opts = vol.get("driver_opts", {})
|
||||
for opt, value in driver_opts.items():
|
||||
args.extend(["--opt", "{opt}={value}".format(opt=opt, value=value)])
|
||||
args.append(vol_name)
|
||||
compose.podman.output([], "volume", args)
|
||||
out = compose.podman.output([], "volume", ["inspect", vol_name]).decode('utf-8')
|
||||
|
Loading…
Reference in New Issue
Block a user