You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
When attempting to set a memory soft limit for a Coder workspace, I found that the Docker Terraform provider is missing the memory_reservation configuration. This functionality needs to be added.
New or Affected Resource(s)
The relevant parts of the code related to memory handling are:
These sections handle memory configuration, so a similar approach should be used to add memory_reservation. The value should be populated in container.HostConfig.MemoryReservation.
Community Note
Description
When attempting to set a memory soft limit for a Coder workspace, I found that the Docker Terraform provider is missing the memory_reservation configuration. This functionality needs to be added.
New or Affected Resource(s)
The relevant parts of the code related to memory handling are:
resource_docker_container_funcs.go
resource_docker_container_funcs.go
resource_docker_container.go
These sections handle memory configuration, so a similar approach should be used to add memory_reservation. The value should be populated in container.HostConfig.MemoryReservation.
References
Docker API - Resources: MemoryReservation
The text was updated successfully, but these errors were encountered: