mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-10 14:09:39 -05:00
mapper: produce map before poll (#2628)
This commit is contained in:
@@ -147,3 +147,9 @@ func DockerAllowNetworkAdministration(config *docker.HostConfig) {
|
||||
config.CapAdd = append(config.CapAdd, "NET_ADMIN")
|
||||
config.Privileged = true
|
||||
}
|
||||
|
||||
// DockerMemoryLimit sets memory limit and disables OOM kill for containers.
|
||||
func DockerMemoryLimit(config *docker.HostConfig) {
|
||||
config.Memory = 2 * 1024 * 1024 * 1024 // 2GB in bytes
|
||||
config.OOMKillDisable = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user