denibertovic / docker-hs

A Haskell library for the Docker Engine API
BSD 3-Clause "New" or "Revised" License
77 stars 48 forks source link

`memorySwap` in createContainer seems to be ignored #85

Open bitc opened 2 years ago

bitc commented 2 years ago

I haven't investigated this thoroughly, but it appears that the memorySwap configuration documented here:

https://hackage.haskell.org/package/docker-0.6.0.6/docs/Docker-Client-Types.html#t:ContainerResources

seems to be ignored by docker, and when inspecting the running container it always has:

"MemorySwap": -1,

I will try to investigate further, but I am posting this here in the meantime in case anyone else has any more information.

Thank you