Coder.comC
Coder.com10mo ago
22 replies
ÙwÚ

How to limit resource use for a container

like the title said, I run coder with
coder server

here is my template structure as default:
user@admin:~/coder-template/docker-code-server$ ls
build  cert.pem  key.pem  main.tf  main.tf~  params.sample.yaml  README.md
user@admin:~/coder-template/docker-code-server$ 

I need a container run as long as I need it too, but looking at htop coder-server/something/node got around half of my ram, so I want to limit them a bit ( maybe 12gb ) ? How can I do that ?
image.png
Was this page helpful?