Closed MichaelLogutov closed 6 months ago
This is not an issue in Testcontainers. Unfortunately, this is a limitation of Docker and is documented.
If you set this option, the minimum allowed value is 6m (6 megabytes). That is, you must set the value to at least 6 megabytes.
You will find more information in the related pull request as well (https://github.com/moby/moby/pull/41168).
I've set value to 2GB (see the code). Are you sure it's not the testcontainer proxy container issue?
I've set value to 2GB (see the code).
Nope, you did not. You set it to 2MB.
According to the API docs the unit is bytes.
Memory limit in bytes.
🤦 My, mistake, sorry.
Testcontainers version
3.7.0
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host arch
x64
.NET version
8.0
Docker version
Docker info
What happened?
Using
HostConfig.Memory
to configure memory limit gets me an error:Relevant log output
Additional information
No response