Is there a way to set memory and storage limits?
Memory added this setting but it did not work well.
Disk could not find the item itself.
11 Replies
<#1279425864588857489>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
hello, what do you mean by "did not work well"?
for the disk, you should be able to use the driver_opts parameter in the
docker_volume
definition
see https://stackoverflow.com/a/40499023 for an explanation
in this case you should be able to do something like
Is there a way to limit memory capacity?
memory = 4096 is not working
The following will be displayed
This does work but is not a hard limit. Docker is only limited if there is not enough memory on the host.
can you send your template over?
yes, if you want stricter resource policies I would recommend that you turn to using Kubernetes instead as that lets you limit resources in a better manner
you have to use one of the following storage drivers for it to work: devicemapper, zfs, or btrfs
see Storage drivers
hey @yourColor, any luck?