softprops / shiplift

🐳 🦀 rust interface for maneuvering docker containers
MIT License
624 stars 119 forks source link

Add nano_cpus and memory_swap to ContainerOptions #231

Closed elihunter173 closed 4 years ago

elihunter173 commented 4 years ago

What did you implement:

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

No 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.