Closed elihunter173 closed 4 years ago
I added nano_cpus and memory_swap methods to ContainerOptionsBuilder corresponding to the options here https://docs.docker.com/engine/api/v1.40/#operation/ContainerCreate
nano_cpus
memory_swap
ContainerOptionsBuilder
No related issues.
cargo clippy, cargo fmt, cargo test, and I integrated this branch successfully into my project.
cargo clippy
cargo fmt
cargo test
ContainerOptionsBuilder now supports setting "MemorySwap" and "NanoCPUs" options of container creation endpoint.
What did you implement:
I added
nano_cpus
andmemory_swap
methods toContainerOptionsBuilder
corresponding to the options here https://docs.docker.com/engine/api/v1.40/#operation/ContainerCreateNo related issues.
How did you verify your change:
cargo clippy
,cargo fmt
,cargo test
, and I integrated this branch successfully into my project.What (if anything) would need to be called out in the CHANGELOG for the next release:
ContainerOptionsBuilder
now supports setting "MemorySwap" and "NanoCPUs" options of container creation endpoint.