containers / containers/podman-py
RFE: Provide a way to verify create container kwargs
- Dominant language
- Python
- Stars
- 381
- Forks
- 140
- Avg merge
- 5h 30m
- Merged PRs (30d)
- 1
Description
docker-py provides two constants `RUN_CREATE_KWARGS` and `RUN_HOST_CONFIG_KWARGS` that a consumer might use to validate kwargs they are passing to the `CreateMixin.create` method.
https://github.com/docker/docker-py/blob/a3652028b1ead708bd9191efb286f909ba6c2a49/docker/models/containers.py#L1122-L1134
I would like podman-py to provide either similar kinds of constants like docker-py does or provide a public method that could be used to validate the kwargs.
Currently, we have the following workaround implemented:
https://github.com/SatelliteQE/broker/blob/eab6d4596d1b729bf86cc2dcd1bcae87e08a576a/broker/binds/containers.py#L150-L165
Contributor guide
Assessment
This issue has not been assessed yet.