fix(vault): raise memlock ulimit to unlimited
Newer hashicorp/vault:latest mlocks more memory than docker's default 64KB memlock ulimit allows; vault crash-looped for ~5900 restarts with 'Failed to lock memory: cannot allocate memory' despite cap_add IPC_LOCK. Deployed via apply-compose.ps1 -Portainer (mgmt plane, not a git stack).
This commit is contained in:
@@ -52,6 +52,13 @@ services:
|
|||||||
- edge
|
- edge
|
||||||
cap_add:
|
cap_add:
|
||||||
- IPC_LOCK
|
- IPC_LOCK
|
||||||
|
# Newer vault:latest mlocks more than docker's default 64KB memlock ulimit;
|
||||||
|
# without this it crash-loops with "Failed to lock memory: cannot allocate
|
||||||
|
# memory" despite IPC_LOCK being granted.
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
environment:
|
environment:
|
||||||
- VAULT_ADDR=http://0.0.0.0:8200
|
- VAULT_ADDR=http://0.0.0.0:8200
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user